Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
29 | class WebApplication extends ConfidentialClient |
||
30 | { |
||
31 | /** |
||
32 | * @var bool |
||
33 | */ |
||
34 | private $useImplicit; |
||
35 | |||
36 | public function __construct($identifier, array $redirectUris = null, bool $useImplicit = false) |
||
37 | { |
||
38 | parent::__construct($identifier, $redirectUris); |
||
|
|||
39 | $this->useImplicit = $useImplicit; |
||
40 | } |
||
41 | |||
42 | function useImplicit(): bool |
||
45 | } |
||
46 | } |
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.