Showing 7 of 94 total issues
Payment
has 43 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Payment implements PaymentFacade
{
/**
* Available drivers
*
Method getPaymentLink
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function getPaymentLink($orderId,
$paymentId,
float $amount,
string $currency = self::CURRENCY_RUR,
string $paymentType = self::PAYMENT_TYPE_CARD,
Method getPaymentLink
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function getPaymentLink($orderId,
$paymentId,
float $amount,
string $currency = self::CURRENCY_RUR,
string $paymentType = self::PAYMENT_TYPE_CARD,
Method getPaymentForm
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function getPaymentForm($orderId,
$paymentId,
float $amount,
string $currency = self::CURRENCY_RUR,
string $paymentType = self::PAYMENT_TYPE_CARD,
Method getPaymentForm
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function getPaymentForm($orderId,
$paymentId,
float $amount,
string $currency = self::CURRENCY_RUR,
string $paymentType = self::PAYMENT_TYPE_CARD,
Method initPayment
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function initPayment(string $token, string $orderId, string $paymentId, float $amount, string $description, string $currency = PayService::CURRENCY_RUR_ISO, array $extraParams = []): bool;
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function __construct(string $name = null, int $qty = null, float $price = null, int $tax = null, string $currency = 'RUR')