Skip to content

Commit 8b24400

Browse files
authored
add trailing commas in multiline constructor signatures (#1848)
1 parent 87f45c6 commit 8b24400

31 files changed

+31
-31
lines changed

src/ApiTokenCookieFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ApiTokenCookieFactory
1515
*/
1616
public function __construct(
1717
protected Config $config,
18-
protected Encrypter $encrypter
18+
protected Encrypter $encrypter,
1919
) {
2020
}
2121

src/Bridge/AccessTokenRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AccessTokenRepository implements AccessTokenRepositoryInterface
1616
* Create a new repository instance.
1717
*/
1818
public function __construct(
19-
protected Dispatcher $events
19+
protected Dispatcher $events,
2020
) {
2121
}
2222

src/Bridge/ClientRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ClientRepository implements ClientRepositoryInterface
1515
*/
1616
public function __construct(
1717
protected ClientModelRepository $clients,
18-
protected Hasher $hasher
18+
protected Hasher $hasher,
1919
) {
2020
}
2121

src/Bridge/DeviceCode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(
2727
array $scopes = [],
2828
bool $userApproved = false,
2929
?DateTimeImmutable $lastPolledAt = null,
30-
?DateTimeImmutable $expiryDateTime = null
30+
?DateTimeImmutable $expiryDateTime = null,
3131
) {
3232
if (! is_null($identifier)) {
3333
$this->setIdentifier($identifier);

src/Bridge/RefreshTokenRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class RefreshTokenRepository implements RefreshTokenRepositoryInterface
1414
* Create a new repository instance.
1515
*/
1616
public function __construct(
17-
protected Dispatcher $events
17+
protected Dispatcher $events,
1818
) {
1919
}
2020

src/Bridge/ScopeRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ScopeRepository implements ScopeRepositoryInterface
1616
* Create a new scope repository.
1717
*/
1818
public function __construct(
19-
protected ClientRepository $clients
19+
protected ClientRepository $clients,
2020
) {
2121
}
2222

src/Bridge/UserRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class UserRepository implements UserRepositoryInterface
1414
* Create a new repository instance.
1515
*/
1616
public function __construct(
17-
protected Hasher $hasher
17+
protected Hasher $hasher,
1818
) {
1919
}
2020

src/Events/AccessTokenCreated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AccessTokenCreated
1010
public function __construct(
1111
public string $tokenId,
1212
public ?string $userId,
13-
public string $clientId
13+
public string $clientId,
1414
) {
1515
}
1616
}

src/Events/AccessTokenRevoked.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class AccessTokenRevoked
88
* Create a new event instance.
99
*/
1010
public function __construct(
11-
public string $tokenId
11+
public string $tokenId,
1212
) {
1313
}
1414
}

src/Events/RefreshTokenCreated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class RefreshTokenCreated
99
*/
1010
public function __construct(
1111
public string $refreshTokenId,
12-
public string $accessTokenId
12+
public string $accessTokenId,
1313
) {
1414
}
1515
}

0 commit comments

Comments
 (0)