1 | <?php |
||
16 | class Html extends AbstractOutput implements OutputInterface |
||
17 | { |
||
18 | 1 | public function render() |
|
22 | |||
23 | /** |
||
24 | * @param Benchmark $benchmark |
||
25 | * @return $this |
||
26 | */ |
||
27 | 2 | public static function output(Benchmark $benchmark) |
|
33 | |||
34 | /** |
||
35 | * @return Node |
||
36 | */ |
||
37 | 2 | private static function tHead() |
|
41 | |||
42 | /** |
||
43 | * @return array |
||
44 | */ |
||
45 | 2 | private static function tHeadMap() |
|
51 | |||
52 | /** |
||
53 | * @param Benchmark $benchmark |
||
54 | * @return Node |
||
55 | */ |
||
56 | 2 | private static function tBody(Benchmark $benchmark) |
|
61 | |||
62 | /** |
||
63 | * @param Benchmark $benchmark |
||
64 | * @return array |
||
65 | */ |
||
66 | private static function tBodyMap(Benchmark $benchmark) |
||
74 | |||
75 | /** |
||
76 | * @param Metric $metric |
||
77 | * @param string $name |
||
78 | * @return Node |
||
79 | */ |
||
80 | 2 | private static function tBodyRow(Metric $metric, $name) |
|
88 | } |
||
89 |
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.