SergioMadness/payment-laravel

View on GitHub

Showing 7 of 94 total issues

Payment has 43 functions (exceeds 20 allowed). Consider refactoring.
Open

class Payment implements PaymentFacade
{
    /**
     * Available drivers
     *
Severity: Minor
Found in src/Payment.php - About 5 hrs to fix

    Method getPaymentForm has 10 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function getPaymentForm($orderId,
                                       $paymentId,
                                       float $amount,
                                       string $currency = self::CURRENCY_RUR,
                                       string $paymentType = self::PAYMENT_TYPE_CARD,
    Severity: Major
    Found in src/Payment.php - About 1 hr to fix

      Method getPaymentLink has 10 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function getPaymentLink($orderId,
                                         $paymentId,
                                         float $amount,
                                         string $currency = self::CURRENCY_RUR,
                                         string $paymentType = self::PAYMENT_TYPE_CARD,
      Severity: Major
      Found in src/Payment.php - About 1 hr to fix

        Method getPaymentForm has 10 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public function getPaymentForm($orderId,
                                           $paymentId,
                                           float $amount,
                                           string $currency = self::CURRENCY_RUR,
                                           string $paymentType = self::PAYMENT_TYPE_CARD,
        Severity: Major
        Found in src/contracts/PayService.php - About 1 hr to fix

          Method getPaymentLink has 10 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              public function getPaymentLink($orderId,
                                             $paymentId,
                                             float $amount,
                                             string $currency = self::CURRENCY_RUR,
                                             string $paymentType = self::PAYMENT_TYPE_CARD,
          Severity: Major
          Found in src/contracts/PayService.php - About 1 hr to fix

            Method initPayment has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                public function initPayment(string $token, string $orderId, string $paymentId, float $amount, string $description, string $currency = PayService::CURRENCY_RUR_ISO, array $extraParams = []): bool;
            Severity: Major
            Found in src/contracts/recurring/RecurringPayment.php - About 50 mins to fix

              Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  public function __construct(string $name = null, int $qty = null, float $price = null, int $tax = null, string $currency = 'RUR')
              Severity: Minor
              Found in src/drivers/receipt/ReceiptItem.php - About 35 mins to fix
                Severity
                Category
                Status
                Source
                Language