| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Distilleries\Expendable\Events; |
||
| 6 | class EventDispatcher implements EventContract { |
||
| 7 | |||
| 8 | protected $event_name; |
||
| 9 | protected $params = array(); |
||
| 10 | |||
| 11 | |||
| 12 | // ------------------------------------------------------------------------------------------------ |
||
| 13 | // ------------------------------------------------------------------------------------------------ |
||
| 14 | // ------------------------------------------------------------------------------------------------ |
||
| 15 | |||
| 16 | |||
| 17 | 16 | public function __construct($eventName, $params = array(), $auto_dispatch = true) |
|
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 28 | // ------------------------------------------------------------------------------------------------ |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritDoc |
||
| 32 | */ |
||
| 33 | 16 | public function dispatch($params = array()) |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param array $params |
||
| 40 | * @deprecated Use dispatch instead |
||
| 41 | */ |
||
| 42 | 2 | public function fire($params = array()) |
|
| 45 | } |
||
| 46 | } |
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.