vragovR/pimpay-bundle

View on GitHub

Showing 4 of 6 total issues

OrderParams has 21 functions (exceeds 20 allowed). Consider refactoring.
Open

class OrderParams
{
    /**
     * @var string
     */
Severity: Minor
Found in src/Model/OrderParams.php - About 2 hrs to fix

    Order has 21 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Order
    {
        /**
         * @var string
         */
    Severity: Minor
    Found in src/Model/Order.php - About 2 hrs to fix

      Method __construct has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function __construct(array $params, CryptoHandlerInterface $cryptoHandler)
          {
              $this->wsdl = file_get_contents(__DIR__.'/../Resources/wsdl.xml');
              $this->token = $params['token'];
              $this->cryptoHandler = $cryptoHandler;
      Severity: Minor
      Found in src/Service/ApiService.php - About 1 hr to fix

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

            public function __doRequest($request, $location, $action, $version, $oneWay = 0)
        Severity: Minor
        Found in src/Service/SoapClientService.php - About 35 mins to fix
          Severity
          Category
          Status
          Source
          Language