| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class Command extends \ParcelValue\ApiClient\AbstractController |
||
| 8 | { |
||
| 9 | use \ParcelValue\ApiClient\Traits\ControllerApiTrait; |
||
| 10 | |||
| 11 | public function __construct() |
||
| 12 | { |
||
| 13 | parent::__construct(); |
||
| 14 | |||
| 15 | $this->repository = new Repository($this->outputLoader); |
||
| 16 | |||
| 17 | $this->validateApiConfig(); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function generateAuthenticationToken() |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
This check compares calls to functions or methods with their respective definitions. If the call has less arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.