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 = [];
foreach ($gateways as $gateway) {
foreach ($gateway->driver($this)->gatewayTypes() as $type) {
if (isset($gateway->fees_and_limits) && property_exists($gateway->fees_and_limits, $type)) {
if ($this->validGatewayForAmount($gateway->fees_and_limits->{$type}, $amount)) {

View File

@ -12,12 +12,9 @@
namespace App\PaymentDrivers;
use App\Jobs\Util\SystemLogger;
use App\Models\ClientGatewayToken;
use App\Models\GatewayType;
use App\Models\Payment;
use App\Models\PaymentType;
use App\Models\SystemLog;
/**
* Class CustomPaymentDriver.
@ -49,9 +46,9 @@ class CustomPaymentDriver extends BaseDriver
/**
* View for displaying custom content of the driver.
*
* @param array $data
* @return mixed
*
* @param array $data
* @return mixed
*/
public function processPaymentView($data)
{
@ -68,8 +65,8 @@ class CustomPaymentDriver extends BaseDriver
/**
* Processing method for payment. Should never be reached with this driver.
*
* @return mixed
*
* @return mixed
*/
public function processPaymentResponse($request)
{