Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 3 |
Ratio | 50 % |
Changes | 5 | ||
Bugs | 4 | Features | 0 |
1 | <?php |
||
54 | public function __call($method, $arguments) |
||
55 | { |
||
56 | View Code Duplication | if (array_key_exists($method, $this->methodMap)) { |
|
57 | return call_user_func_array([$this->subject, $this->methodMap[$method]], $arguments); |
||
58 | } |
||
59 | } |
||
60 | } |
||
61 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: