Skip to content

Commit 63c2385

Browse files
committed
[ci] php-cs-fixer it up
1 parent 0064f90 commit 63c2385

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/Generator/VerifyEmailTokenGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class VerifyEmailTokenGenerator
2626
*/
2727
public function __construct(
2828
#[\SensitiveParameter]
29-
private string $signingKey
29+
private string $signingKey,
3030
) {
3131
}
3232

src/Model/VerifyEmailSignatureComponents.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class VerifyEmailSignatureComponents
2828
public function __construct(
2929
private \DateTimeInterface $expiresAt,
3030
private string $uri,
31-
private int $generatedAt
31+
private int $generatedAt,
3232
) {
3333
}
3434

@@ -106,7 +106,7 @@ public function getExpiresAtIntervalInstance(): \DateInterval
106106
$createdAtTime = \DateTimeImmutable::createFromFormat('U', (string) $this->generatedAt);
107107

108108
if (false === $createdAtTime) {
109-
throw new VerifyEmailRuntimeException(sprintf('Unable to create DateTimeInterface instance from "generatedAt": %s', $this->generatedAt));
109+
throw new VerifyEmailRuntimeException(\sprintf('Unable to create DateTimeInterface instance from "generatedAt": %s', $this->generatedAt));
110110
}
111111

112112
return $this->expiresAt->diff($createdAtTime);

src/VerifyEmailHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(
3232
private UrlGeneratorInterface $router,
3333
private UriSigner $uriSigner,
3434
private VerifyEmailTokenGenerator $tokenGenerator,
35-
private int $lifetime
35+
private int $lifetime,
3636
) {
3737
}
3838

@@ -52,7 +52,7 @@ public function generateSignature(string $routeName, string $userId, string $use
5252
$signature = $this->uriSigner->sign($uri);
5353

5454
if (!$expiresAt = \DateTimeImmutable::createFromFormat('U', (string) $expiryTimestamp)) {
55-
throw new VerifyEmailRuntimeException(sprintf('Unable to create DateTimeImmutable from timestamp: %s', $expiryTimestamp));
55+
throw new VerifyEmailRuntimeException(\sprintf('Unable to create DateTimeImmutable from timestamp: %s', $expiryTimestamp));
5656
}
5757

5858
return new VerifyEmailSignatureComponents($expiresAt, $signature, $generatedAt);

tests/Acceptance/VerifyEmailAcceptanceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private function getBootedKernel(): KernelInterface
107107
final class VerifyEmailAcceptanceFixture
108108
{
109109
public function __construct(
110-
public VerifyEmailHelperInterface $helper
110+
public VerifyEmailHelperInterface $helper,
111111
) {
112112
}
113113
}

tests/Unit/VerifyEmailHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function testExceptionThrownWithExpiredSignatureFromRequest(): void
103103
{
104104
$timestamp = (new \DateTimeImmutable('-1 seconds'))->getTimestamp();
105105

106-
$request = Request::create(sprintf('/?expires=%s', $timestamp));
106+
$request = Request::create(\sprintf('/?expires=%s', $timestamp));
107107

108108
$this->mockSigner
109109
->expects($this->once())

tests/VerifyEmailTestKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class VerifyEmailTestKernel extends Kernel
3333
public function __construct(
3434
private ?ContainerBuilder $builder = null,
3535
private array $routes = [],
36-
private array $extraBundles = []
36+
private array $extraBundles = [],
3737
) {
3838
parent::__construct('test', true);
3939
}

0 commit comments

Comments
 (0)