File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -300,14 +300,13 @@ and storage::
300300 namespace App\Security;
301301
302302 use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
303- use Symfony\Component\String\UnicodeString;
304303 use function Symfony\Component\String\u;
305304
306305 final class NormalizedUserBadge extends UserBadge
307306 {
308307 public function __construct(string $identifier)
309308 {
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();
311310
312311 parent::__construct($identifier, null, $callback);
313312 }
@@ -318,7 +317,7 @@ and storage::
318317
319318 final class PasswordAuthenticator extends AbstractLoginFormAuthenticator
320319 {
321- // Simplified for brievety
320+ // simplified for brevity
322321 public function authenticate(Request $request): Passport
323322 {
324323 $username = (string) $request->request->get('username', '');
@@ -331,7 +330,7 @@ and storage::
331330 new NormalizedUserBadge($username),
332331 new PasswordCredentials($password),
333332 [
334- //All other useful badges
333+ // all other useful badges
335334 ]
336335 );
337336 }
You can’t perform that action at this time.
0 commit comments