Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | protected static function call(&$rules, $key, $arguments = []) |
||
22 | { |
||
23 | switch ($key) { |
||
24 | case 'define': |
||
25 | return self::defineRule($rules, ...$arguments); |
||
26 | |||
27 | case 'defined': |
||
28 | return self::isRuleDefined($rules, ...$arguments); |
||
29 | |||
30 | case 'undefine': |
||
31 | return self::undefineRule($rules, ...$arguments); |
||
32 | } |
||
33 | |||
34 | return parent::call($rules, $key, $arguments); |
||
35 | } |
||
58 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.