| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 31 | public function login($email, $password) |
||
|
|
|||
| 32 | { |
||
| 33 | // some verification code here |
||
| 34 | $success = '...'; |
||
| 35 | |||
| 36 | if ($success) { |
||
| 37 | $userLoginEvent = new UserLoginEvent($email); |
||
| 38 | $this->eventDispatcherInterface->dispatch(AppEvents::ON_LOGIN, $userLoginEvent); |
||
| 39 | // That's it! You've just successfully used an event. |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 44 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.