Skip to content

Commit 972dd87

Browse files
Merge branch '6.4' into 7.2
* 6.4: - CS fixes
2 parents 611d695 + bd6ce06 commit 972dd87

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

LoginLink/LoginLinkHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

Tests/FirewallTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)