File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -84,14 +84,14 @@ public function consumeLoginLink(Request $request): UserInterface
8484 if (!$ hash = $ request ->get ('hash ' )) {
8585 throw new InvalidLoginLinkException ('Missing "hash" parameter. ' );
8686 }
87- if (!is_string ($ hash )) {
87+ if (!\ is_string ($ hash )) {
8888 throw new InvalidLoginLinkException ('Invalid "hash" parameter. ' );
8989 }
9090
9191 if (!$ expires = $ request ->get ('expires ' )) {
9292 throw new InvalidLoginLinkException ('Missing "expires" parameter. ' );
9393 }
94- if (preg_match ('/^\d+$/ ' , $ expires ) !== 1 ) {
94+ if (! preg_match ('/^\d+$/ ' , $ expires )) {
9595 throw new InvalidLoginLinkException ('Invalid "expires" parameter. ' );
9696 }
9797
Original file line number Diff line number Diff line change @@ -104,9 +104,11 @@ public function testListenersAreCalled()
104104 {
105105 $ calledListeners = [];
106106
107- $ callableListener = static function () use (&$ calledListeners ) { $ calledListeners [] = 'callableListener ' ; };
107+ $ callableListener = static function () use (&$ calledListeners ) { $ calledListeners [] = 'callableListener ' ; };
108108 $ firewallListener = new class ($ calledListeners ) implements FirewallListenerInterface {
109- public function __construct (private array &$ calledListeners ) {}
109+ public function __construct (private array &$ calledListeners )
110+ {
111+ }
110112
111113 public function supports (Request $ request ): ?bool
112114 {
@@ -124,7 +126,9 @@ public static function getPriority(): int
124126 }
125127 };
126128 $ callableFirewallListener = new class ($ calledListeners ) extends AbstractListener {
127- public function __construct (private array &$ calledListeners ) {}
129+ public function __construct (private array &$ calledListeners )
130+ {
131+ }
128132
129133 public function supports (Request $ request ): ?bool
130134 {
You can’t perform that action at this time.
0 commit comments