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