angelxmoreno/doba-api

View on GitHub

Showing 5 of 6 total issues

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

string $username,
string $password,
string $retailer_id,
string $type = Factory::PRODUCT,
bool $dev_mode = true
Severity: Minor
Found in src/Factory.php - About 35 mins to fix

The method buildApi has a boolean flag argument $dev_mode, which is a certain sign of a Single Responsibility Principle violation.
Open

bool $dev_mode = true
Severity: Minor
Found in src/Factory.php by phpmd

The method buildClient has a boolean flag argument $dev_mode, which is a certain sign of a Single Responsibility Principle violation.
Open

bool $dev_mode = true
Severity: Minor
Found in src/Factory.php by phpmd

Missing class import via use statement (line '81', column '23').
Open

throw new \BadMethodCallException("Method {$method} does not exist");
Severity: Minor
Found in src/Api.php by phpmd

Missing class import via use statement (line '63', column '23').
Open

throw new \InvalidArgumentException(sprintf(
Severity: Minor
Found in src/Factory.php by phpmd
Severity
Category
Status
Source
Language