Total Complexity | 4 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | abstract class PhpXmlRpc_PolyfillTestCase extends TestCase |
||
13 | { |
||
14 | public function _run($result = null) { |
||
15 | return parent::run($result); |
||
16 | } |
||
17 | |||
18 | public static function _fail() {} |
||
19 | |||
20 | public function run($result = null) { |
||
21 | return $this->_run($result); |
||
22 | } |
||
23 | |||
24 | public static function fail($message = '') { |
||
27 | } |
||
28 | } |
||
29 | } else { |
||
30 | abstract class PhpXmlRpc_PolyfillTestCase extends TestCase |
||
48 |
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.