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
84
84
if (!$ hash = $ request ->get ('hash ' )) {
85
85
throw new InvalidLoginLinkException ('Missing "hash" parameter. ' );
86
86
}
87
- if (!is_string ($ hash )) {
87
+ if (!\ is_string ($ hash )) {
88
88
throw new InvalidLoginLinkException ('Invalid "hash" parameter. ' );
89
89
}
90
90
91
91
if (!$ expires = $ request ->get ('expires ' )) {
92
92
throw new InvalidLoginLinkException ('Missing "expires" parameter. ' );
93
93
}
94
- if (preg_match ('/^\d+$/ ' , $ expires ) !== 1 ) {
94
+ if (! preg_match ('/^\d+$/ ' , $ expires )) {
95
95
throw new InvalidLoginLinkException ('Invalid "expires" parameter. ' );
96
96
}
97
97
Original file line number Diff line number Diff line change @@ -104,9 +104,11 @@ public function testListenersAreCalled()
104
104
{
105
105
$ calledListeners = [];
106
106
107
- $ callableListener = static function () use (&$ calledListeners ) { $ calledListeners [] = 'callableListener ' ; };
107
+ $ callableListener = static function () use (&$ calledListeners ) { $ calledListeners [] = 'callableListener ' ; };
108
108
$ firewallListener = new class ($ calledListeners ) implements FirewallListenerInterface {
109
- public function __construct (private array &$ calledListeners ) {}
109
+ public function __construct (private array &$ calledListeners )
110
+ {
111
+ }
110
112
111
113
public function supports (Request $ request ): ?bool
112
114
{
@@ -124,7 +126,9 @@ public static function getPriority(): int
124
126
}
125
127
};
126
128
$ callableFirewallListener = new class ($ calledListeners ) extends AbstractListener {
127
- public function __construct (private array &$ calledListeners ) {}
129
+ public function __construct (private array &$ calledListeners )
130
+ {
131
+ }
128
132
129
133
public function supports (Request $ request ): ?bool
130
134
{
You can’t perform that action at this time.
0 commit comments