| Conditions | 5 |
| Paths | 6 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function __set($key, $val) |
||
| 24 | { |
||
| 25 | switch ($key) { |
||
| 26 | case 'style': |
||
| 27 | $this->properties[$key]['data'] = HtmlLabelStyle::factory((string)$val); |
||
|
|
|||
| 28 | break; |
||
| 29 | case 'createAssociations': |
||
| 30 | $this->properties[$key]['data'] = ($val === '0' || $val === 'false') ? false : true; |
||
| 31 | break; |
||
| 32 | default: |
||
| 33 | throw new plProcessorOptionException($key, plProcessorOptionException::WRITE); |
||
| 34 | } |
||
| 38 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.