| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 2 | public function onAction(RequestAwareEventInterface $event) |
|
| 25 | { |
||
| 26 | 2 | $action = $this->getControllerMethod($event->getRequest()); |
|
| 27 | 2 | $listenerMethodName = sprintf('on%s', ucfirst($action)); |
|
| 28 | 2 | if (method_exists($this, $listenerMethodName)) { |
|
| 29 | 1 | $this->{$listenerMethodName}($event); |
|
| 30 | } |
||
| 31 | 2 | } |
|
| 32 | } |
||
| 33 |