| Conditions | 4 |
| Paths | 6 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | 14 | public function forgetAbout($manager, $models, $event = null) |
|
| 12 | { |
||
| 13 | 14 | $models = is_array($models[0]) ? $models[0] : $models; |
|
| 14 | |||
| 15 | 14 | foreach ($models as $model) { |
|
| 16 | 14 | if ($event) { |
|
| 17 | 4 | unset($this->data[$manager][$model][$event]); |
|
| 18 | } else { |
||
| 19 | 14 | unset($this->data[$manager][$model]); |
|
| 20 | } |
||
| 52 |
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.