php-cs-fixer

This commit is contained in:
Benjamin Beganović 2020-12-10 12:38:46 +01:00
parent 9df4938837
commit 5f796aeab6
2 changed files with 5 additions and 9 deletions

View File

@ -462,7 +462,6 @@ class Client extends BaseModel implements HasLocalePreference
$payment_methods = []; $payment_methods = [];
foreach ($gateways as $gateway) { foreach ($gateways as $gateway) {
foreach ($gateway->driver($this)->gatewayTypes() as $type) { foreach ($gateway->driver($this)->gatewayTypes() as $type) {
if (isset($gateway->fees_and_limits) && property_exists($gateway->fees_and_limits, $type)) { if (isset($gateway->fees_and_limits) && property_exists($gateway->fees_and_limits, $type)) {
if ($this->validGatewayForAmount($gateway->fees_and_limits->{$type}, $amount)) { if ($this->validGatewayForAmount($gateway->fees_and_limits->{$type}, $amount)) {

View File

@ -12,12 +12,9 @@
namespace App\PaymentDrivers; namespace App\PaymentDrivers;
use App\Jobs\Util\SystemLogger;
use App\Models\ClientGatewayToken; use App\Models\ClientGatewayToken;
use App\Models\GatewayType; use App\Models\GatewayType;
use App\Models\Payment; use App\Models\Payment;
use App\Models\PaymentType;
use App\Models\SystemLog;
/** /**
* Class CustomPaymentDriver. * Class CustomPaymentDriver.