Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes from last version of php-cs-fixer #2

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Command/CleanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CleanCommand extends Command
public function __construct(
private readonly AccessTokenStorageInterface $accessTokenStorage,
private readonly RefreshTokenStorageInterface $refreshTokenStorage,
private readonly AuthCodeStorageInterface $authCodeStorage
private readonly AuthCodeStorageInterface $authCodeStorage,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Storage/AccessTokenStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AccessTokenStorage implements AccessTokenStorageInterface
*/
public function __construct(
private readonly EntityManagerInterface $em,
string $className
string $className,
) {
$repository = $this->em->getRepository($className);

Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Storage/AuthCodeStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AuthCodeStorage implements AuthCodeStorageInterface
*/
public function __construct(
private readonly EntityManagerInterface $em,
string $className
string $className,
) {
/** @var class-string $className */
$repository = $this->em->getRepository($className);
Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Storage/ClientStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ClientStorage implements ClientStorageInterface
*/
public function __construct(
private readonly EntityManagerInterface $em,
string $className
string $className,
) {
$repository = $this->em->getRepository($className);

Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Storage/RefreshTokenStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class RefreshTokenStorage implements RefreshTokenStorageInterface
*/
public function __construct(
private readonly EntityManagerInterface $em,
string $className
string $className,
) {
$repository = $this->em->getRepository($className);

Expand Down
2 changes: 1 addition & 1 deletion src/Security/Authenticator/OAuthAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class OAuthAuthenticator extends AbstractAuthenticator
public function __construct(
private readonly UserCheckerInterface $userChecker,
private readonly Handler $handler,
private readonly Config $config
private readonly Config $config,
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AccessTokenBadge implements BadgeInterface
*/
public function __construct(
private readonly AccessTokenInterface $accessToken,
private readonly array $roles
private readonly array $roles,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/Server/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ private function createAccessToken(
?string $scope = null,
?int $accessTokenLifetime = null,
bool $issueRefreshToken = true,
?int $refreshTokenLifetime = null
?int $refreshTokenLifetime = null,
): array {
if (null === $accessTokenLifetime) {
$accessTokenLifetime = (int) $this->config->getVariable(Config::CONFIG_ACCESS_LIFETIME);
Expand Down
4 changes: 2 additions & 2 deletions tests/Server/HandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public static function provideVerifyAccessTokenException(): iterable
public function testVerifyAccessTokenException(
?AccessTokenInterface $token,
string $tokenParam,
?string $scope = null
?string $scope = null,
): void {
$this->accessTokenStorage->method('getAccessToken')->willReturn($token);

Expand Down Expand Up @@ -569,7 +569,7 @@ public function testGrantAccessTokenCustom(Request $request): void
->willReturn($client)
;

$custom = new class() implements GrantExtensionInterface {
$custom = new class implements GrantExtensionInterface {
public function checkGrantExtension(ClientInterface $client, Config $config, string $grantType, array $input): Grant
{
return new Grant(null, null);
Expand Down