apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -28,19 +28,15 @@ class UserProvider implements UserProviderInterface
try {
$user = $this->em->createQuery(sprintf(
'SELECT u FROM %s u '
. 'WHERE u.usernameCanonical = UNACCENT(LOWER(:pattern)) '
. 'OR '
. 'u.emailCanonical = UNACCENT(LOWER(:pattern))',
.'WHERE u.usernameCanonical = UNACCENT(LOWER(:pattern)) '
.'OR '
.'u.emailCanonical = UNACCENT(LOWER(:pattern))',
User::class
))
->setParameter('pattern', $username)
->getSingleResult();
} catch (NoResultException $e) {
throw new UsernameNotFoundException(
'Bad credentials.',
0,
$e
);
throw new UsernameNotFoundException('Bad credentials.', 0, $e);
}
return $user;