Conditions | 5 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function handle(): void |
||
31 | { |
||
32 | if ($this->option('full')) { |
||
33 | (new PopulateAniDB(['Echo' => true]))->populateTable('full'); |
||
|
|||
34 | } elseif ($this->option('info') && is_numeric($this->option('anidbid'))) { |
||
35 | (new PopulateAniDB(['Echo' => true]))->populateTable('info', $this->option('anidbid')); |
||
36 | } elseif ($this->option('info')) { |
||
37 | (new PopulateAniDB(['Echo' => true]))->populateTable('info'); |
||
38 | } |
||
39 | $this->info('AniDB tables populated with requested data'); |
||
40 | } |
||
42 |
This check compares calls to functions or methods with their respective definitions. If the call has more 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.