wp-pay-gateways/adyen

View on GitHub

Showing 97 of 97 total issues

Avoid too many return statements within this method.
Open

            return new \WP_Error(
                'pronamic-pay-adyen-gateway-not-found',
                sprintf(
                    /* translators: %s: Gateway configuration ID */
                    __( 'Could not find gateway with ID `%s`.', 'pronamic_ideal' ),
Severity: Major
Found in src/PaymentsController.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                return (object) array( 'error' => $error );
    Severity: Major
    Found in src/PaymentsController.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

              return null;
      Severity: Major
      Found in src/ResultCode.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                    return $this->get_response_result( $response );
        Severity: Major
        Found in src/PaymentsController.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                      return new WP_Error(
                          'pronamic-pay-adyen-payment-not-found',
                          sprintf(
                              /* translators: %s: Adyen merchant reference */
                              __( 'Could not found payment with ID `%s`.', 'pronamic_ideal' ),
          Severity: Major
          Found in src/PaymentsResultController.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return new \WP_Error(
                            'pronamic-pay-adyen-client-not-found',
                            sprintf(
                                /* translators: %s: Gateway configuration ID */
                                __( 'Could not find client in gateway with ID `%s`.', 'pronamic_ideal' ),
            Severity: Major
            Found in src/PaymentsController.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return new \WP_Error(
                              'pronamic-pay-adyen-gateway-not-found',
                              sprintf(
                                  /* translators: %s: Gateway configuration ID */
                                  __( 'Could not find gateway with ID `%s`.', 'pronamic_ideal' ),
              Severity: Major
              Found in src/PaymentsController.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                            return new \WP_Error(
                                'pronamic-pay-adyen-gateway-not-found',
                                sprintf(
                                    /* translators: %s: Gateway configuration ID */
                                    __( 'Could not find gateway with ID `%s`.', 'pronamic_ideal' ),
                Severity: Major
                Found in src/PaymentsController.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                          return (object) $result;
                  Severity: Major
                  Found in src/PaymentsController.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                return $this->get_response_result( $response );
                    Severity: Major
                    Found in src/PaymentsController.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                  return new \WP_Error(
                                      'pronamic-pay-adyen-client-not-found',
                                      sprintf(
                                          /* translators: %s: Gateway configuration ID */
                                          __( 'Could not find client in gateway with ID `%s`.', 'pronamic_ideal' ),
                      Severity: Major
                      Found in src/PaymentsController.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return $payment_result_response->get_json();
                        Severity: Major
                        Found in src/PaymentsResultController.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return new \WP_Error(
                                          'pronamic-pay-adyen-no-drop-in',
                                          sprintf(
                                              /* translators: %s: Gateway configuration ID */
                                              __( 'Unable to handle payment `%s` because it was not processed through the Adyen drop-in integration.', 'pronamic_ideal' ),
                          Severity: Major
                          Found in src/PaymentsController.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                        return new \WP_Error(
                                            'pronamic-pay-adyen-no-payment-method',
                                            __( 'No payment method given.', 'pronamic_ideal' )
                                        );
                            Severity: Major
                            Found in src/PaymentsController.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                          return new \WP_Error(
                                              'pronamic-pay-adyen-client-not-found',
                                              sprintf(
                                                  /* translators: %s: Gateway configuration ID */
                                                  __( 'Could not find client in gateway with ID `%s`.', 'pronamic_ideal' ),
                              Severity: Major
                              Found in src/PaymentsController.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                            return new \WP_Error(
                                                'pronamic-pay-adyen-exception',
                                                $e->getMessage(),
                                                $e
                                            );
                                Severity: Major
                                Found in src/PaymentsController.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                              return new \WP_Error(
                                                  'pronamic-pay-adyen-applepay-no-merchant-identifier',
                                                  __( 'Apple Pay merchant identifier not configured in gateway settings.', 'pronamic_ideal' )
                                              );
                                  Severity: Major
                                  Found in src/PaymentsController.php - About 30 mins to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language