| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 1 | protected function buildMenu() |
|
| 40 | { |
||
| 41 | 1 | $builder = new Builder($this->buildFilters()); |
|
| 42 | |||
| 43 | 1 | if (method_exists($this->events, 'dispatch')) { |
|
| 44 | $this->events->dispatch(new BuildingMenu($builder)); |
||
| 45 | } else { |
||
| 46 | 1 | $this->events->fire(new BuildingMenu($builder)); |
|
|
|
|||
| 47 | } |
||
| 48 | |||
| 49 | 1 | return $builder->menu; |
|
| 50 | } |
||
| 51 | |||
| 57 |
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.