File tree 1 file changed +3
-4
lines changed 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -300,14 +300,13 @@ and storage::
300
300
namespace App\Security;
301
301
302
302
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
303
- use Symfony\Component\String\UnicodeString;
304
303
use function Symfony\Component\String\u;
305
304
306
305
final class NormalizedUserBadge extends UserBadge
307
306
{
308
307
public function __construct(string $identifier)
309
308
{
310
- $callback = static fn (string $identifier) => u($identifier)->normalize(UnicodeString::NFKC)->ascii()->lower()->toString();
309
+ $callback = static fn (string $identifier): string => u($identifier)->normalize(UnicodeString::NFKC)->ascii()->lower()->toString();
311
310
312
311
parent::__construct($identifier, null, $callback);
313
312
}
@@ -318,7 +317,7 @@ and storage::
318
317
319
318
final class PasswordAuthenticator extends AbstractLoginFormAuthenticator
320
319
{
321
- // Simplified for brievety
320
+ // simplified for brevity
322
321
public function authenticate(Request $request): Passport
323
322
{
324
323
$username = (string) $request->request->get('username', '');
@@ -331,7 +330,7 @@ and storage::
331
330
new NormalizedUserBadge($username),
332
331
new PasswordCredentials($password),
333
332
[
334
- //All other useful badges
333
+ // all other useful badges
335
334
]
336
335
);
337
336
}
You can’t perform that action at this time.
0 commit comments