Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
56 | function times($start, $object = 'XlsxWriter') |
||
57 | { |
||
58 | echo $object, PHP_EOL; |
||
59 | echo microtime(true) - $start, PHP_EOL; |
||
60 | echo '#', floor((memory_get_peak_usage(true)) / 1024 / 1024), "MB", PHP_EOL; |
||
61 | echo '#', floor((memory_get_usage(true)) / 1024 / 1024), "MB", PHP_EOL, PHP_EOL; |
||
62 | } |
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.