mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
php-cs-fixer
This commit is contained in:
parent
9df4938837
commit
5f796aeab6
@ -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)) {
|
||||||
|
@ -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.
|
||||||
@ -49,9 +46,9 @@ class CustomPaymentDriver extends BaseDriver
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* View for displaying custom content of the driver.
|
* View for displaying custom content of the driver.
|
||||||
*
|
*
|
||||||
* @param array $data
|
* @param array $data
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function processPaymentView($data)
|
public function processPaymentView($data)
|
||||||
{
|
{
|
||||||
@ -68,8 +65,8 @@ class CustomPaymentDriver extends BaseDriver
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Processing method for payment. Should never be reached with this driver.
|
* Processing method for payment. Should never be reached with this driver.
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function processPaymentResponse($request)
|
public function processPaymentResponse($request)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user