Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
75 | 1 | public function __call($name, $params) |
|
76 | { |
||
77 | 1 | if(strlen($name) > 3) { |
|
78 | 1 | $property = substr($name, 3); |
|
79 | 1 | $property[0] = strtolower($property[0]); |
|
80 | 1 | if(strpos($name, 'get') === 0) { |
|
81 | return $this->__get($property); |
||
82 | } |
||
83 | 1 | if(strpos($name, 'set') === 0) { |
|
84 | 1 | return $this->__set($property, $params[0]); |
|
85 | } |
||
86 | } |
||
87 | } |
||
88 | } |
||
89 |
This check marks private properties in classes that are never used. Those properties can be removed.