Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | private function getContent() |
||
33 | { |
||
34 | $content = $this->getContent($view); |
||
35 | $content = new Inheritance($content, $this->config); |
||
36 | $content = new IncludeTpl($content, $this->config); |
||
37 | $content = new ForeachTpl($content); |
||
38 | $content = new IfTpl($content); |
||
39 | $content = new FuncTpl($content); |
||
40 | $content = new VariableTpl($content); |
||
41 | |||
42 | return $content; |
||
43 | } |
||
45 |
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.