Skip to content

Commit

Permalink
Drop it here too.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jan 13, 2024
1 parent 17e7487 commit 9af2037
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/Fieldtypes/GatewayFieldtype.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ public function preProcess($value)

$actionUrl = null;

$gateway = SimpleCommerce::gateways()
->where('handle', $value['use'])
->first();
$gateway = SimpleCommerce::gateways()->firstWhere('handle', $value['use']);

if (! $gateway) {
return null;
Expand Down Expand Up @@ -86,9 +84,7 @@ public function process($value)

public function augment($value)
{
$gateway = SimpleCommerce::gateways()
->where('handle', $value['use'])
->first();
$gateway = SimpleCommerce::gateways()->firstWhere('handle', $value['use']);

if (! $gateway) {
return null;
Expand All @@ -105,9 +101,7 @@ public function preProcessIndex($value)
return;
}

$gateway = SimpleCommerce::gateways()
->where('handle', $value['use'])
->first();
$gateway = SimpleCommerce::gateways()->firstWhere('handle', $value['use']);

if (! $gateway) {
return null;
Expand Down

0 comments on commit 9af2037

Please sign in to comment.