SergioMadness/payment-laravel

View on GitHub
src/contracts/PayService.php

Summary

Maintainability
A
2 hrs
Test Coverage

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 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

      The method getPaymentForm has 10 parameters. Consider reducing the number of parameters to less than 10.
      Open

          public function getPaymentForm($orderId,
                                         $paymentId,
                                         float $amount,
                                         string $currency = self::CURRENCY_RUR,
                                         string $paymentType = self::PAYMENT_TYPE_CARD,
      Severity: Minor
      Found in src/contracts/PayService.php by phpmd

      The method getPaymentLink has 10 parameters. Consider reducing the number of parameters to less than 10.
      Open

          public function getPaymentLink($orderId,
                                         $paymentId,
                                         float $amount,
                                         string $currency = self::CURRENCY_RUR,
                                         string $paymentType = self::PAYMENT_TYPE_CARD,
      Severity: Minor
      Found in src/contracts/PayService.php by phpmd

      The closing parenthesis of a multi-line function declaration must be on a new line
      Open

                                         Receipt $receipt = null): Form;
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         $paymentId,
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      The first parameter of a multi-line function declaration must be on the line after the opening bracket
      Open

          public function getPaymentForm($orderId,
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         $paymentId,
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      The first parameter of a multi-line function declaration must be on the line after the opening bracket
      Open

          public function getPaymentLink($orderId,
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         string $description = '',
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         Receipt $receipt = null): Form;
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         array $extraParams = [],
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         string $successReturnUrl = '',
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         string $currency = self::CURRENCY_RUR,
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         string $paymentType = self::PAYMENT_TYPE_CARD,
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         string $failReturnUrl = '',
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         string $paymentType = self::PAYMENT_TYPE_CARD,
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         string $description = '',
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         string $currency = self::CURRENCY_RUR,
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      The closing parenthesis of a multi-line function declaration must be on a new line
      Open

                                         Receipt $receipt = null): string;
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         Receipt $receipt = null): string;
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         float $amount,
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         array $extraParams = [],
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         float $amount,
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         string $failReturnUrl = '',
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Multi-line function declaration not indented correctly; expected 8 spaces but found 35
      Open

                                         string $successReturnUrl = '',
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      Expected 1 newline at end of file; 0 found
      Open

      }
      Severity: Minor
      Found in src/contracts/PayService.php by phpcodesniffer

      There are no issues that match your filters.

      Category
      Status