Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function up() |
||
16 | { |
||
17 | // Strip phpMyAdmin versions in `reports` table |
||
18 | $count = $this->_sanitizeVersionsInTable('reports'); |
||
19 | Log::debug($count . ' reports updated'); |
||
20 | |||
21 | // Strip phpMyAdmin versions in `incidents` table |
||
22 | $count = $this->_sanitizeVersionsInTable('incidents'); |
||
23 | Log::debug($count . ' incidents updated'); |
||
24 | } |
||
25 | |||
56 |
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.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.