| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function login(Request $request, AuthenticationUtils $authenticationUtils) |
||
|
|
|||
| 35 | { |
||
| 36 | // get the login error if there is one |
||
| 37 | $error = $authenticationUtils->getLastAuthenticationError(); |
||
| 38 | |||
| 39 | // last username entered by the user |
||
| 40 | $lastUsername = $authenticationUtils->getLastUsername(); |
||
| 41 | |||
| 42 | return $this->render('security/login.html.twig', [ |
||
| 43 | 'last_username' => $lastUsername, |
||
| 44 | 'error' => $error, |
||
| 45 | ]); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.