Lines 100.00% 8 / 8
Methods 100.00% 1 / 1
Classes 100.00% 1 / 1
Name Lines Methods CRAP
 __invoke 100.00% 8 / 8 100.00% 1 / 1 1
14class LoginFormController extends AbstractController
15{
16    public function __invoke(
17        AuthenticationUtils $authenticationUtils,
18        #[Autowire('%env(OAUTH_GOOGLE_ID)%')] string $oauthGoogleId,
19    ): Response {
20        return $this->render(
21            'auth/login.html.twig',
22            [
23                'last_username' => $authenticationUtils->getLastUsername(),
24                'error' => $authenticationUtils->getLastAuthenticationError(),
25                'oauthGoogleId' => $oauthGoogleId,
26            ]
27        );
28    }
29}