| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 6 | public function __call($name, $arguments) |
||
| 7 | { |
||
| 8 | $access = new Access(); |
||
| 9 | $enumerator = new Enumerator(); |
||
| 10 | $transform = new Transform(); |
||
| 11 | |||
| 12 | if (condition) { |
||
| 13 | return call_user_func_array([$access, $name], $args); |
||
|
|
|||
| 14 | } else if (condition) { |
||
| 15 | return call_user_func_array([$enumerator, $name], $args); |
||
| 16 | } else if (condition) { |
||
| 17 | return call_user_func_array([$transform, $name], $args); |
||
| 18 | } |
||
| 19 | } |
||
| 20 | } |
||
| 21 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.