Skip to content

Commit 6821a13

Browse files
committed
CS Fixes
1 parent 0b428ad commit 6821a13

13 files changed

+29
-28
lines changed

src/DependencyInjection/LeagueOAuth2ServerExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ final class LeagueOAuth2ServerExtension extends Extension implements PrependExte
4444
/**
4545
* {@inheritdoc}
4646
*
47-
* @throws \Exception
48-
*
4947
* @return void
48+
*
49+
* @throws \Exception
5050
*/
5151
public function load(array $configs, ContainerBuilder $container)
5252
{

src/Resources/config/access_token/default.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
declare(strict_types=1);
44

55
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
6+
67
use League\Bundle\OAuth2ServerBundle\Converter\ScopeConverterInterface;
78
use League\Bundle\OAuth2ServerBundle\Manager\AccessTokenManagerInterface;
89
use League\Bundle\OAuth2ServerBundle\Manager\ClientManagerInterface;

src/Resources/config/services.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use function Symfony\Component\DependencyInjection\Loader\Configurator\param;
77
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
88
use function Symfony\Component\DependencyInjection\Loader\Configurator\tagged_iterator;
9+
910
use League\Bundle\OAuth2ServerBundle\AuthorizationServer\GrantConfigurator;
1011
use League\Bundle\OAuth2ServerBundle\Command\ClearExpiredTokensCommand;
1112
use League\Bundle\OAuth2ServerBundle\Command\CreateClientCommand;

src/Resources/config/storage/doctrine.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
declare(strict_types=1);
44

55
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
6+
67
use League\Bundle\OAuth2ServerBundle\Manager\AccessTokenManagerInterface;
78
use League\Bundle\OAuth2ServerBundle\Manager\AuthorizationCodeManagerInterface;
89
use League\Bundle\OAuth2ServerBundle\Manager\ClientManagerInterface;

src/Resources/config/storage/in_memory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
declare(strict_types=1);
44

55
use function Symfony\Component\DependencyInjection\Loader\Configurator\service;
6+
67
use League\Bundle\OAuth2ServerBundle\Manager\AccessTokenManagerInterface;
78
use League\Bundle\OAuth2ServerBundle\Manager\AuthorizationCodeManagerInterface;
89
use League\Bundle\OAuth2ServerBundle\Manager\ClientManagerInterface;

src/Security/EventListener/CheckScopeListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function checkPassport(CheckPassportEvent $event): void
3030
{
3131
/**
3232
* @var Passport $passport
33+
*
3334
* @psalm-suppress DeprecatedClass
3435
*/
3536
$passport = $event->getPassport();

tests/Acceptance/DeleteClientCommandTest.php

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ public function testDeleteNonExistentClient(): void
4747

4848
private function findClient(string $identifier): ?Client
4949
{
50-
return
51-
$this
52-
->getClientManager()
53-
->find($identifier)
54-
;
50+
return $this->getClientManager()->find($identifier);
5551
}
5652

5753
private function fakeAClient(string $name, string $identifier): Client
@@ -61,12 +57,10 @@ private function fakeAClient(string $name, string $identifier): Client
6157

6258
private function getClientManager(): ClientManagerInterface
6359
{
64-
return
65-
$this
66-
->client
67-
->getContainer()
68-
->get(ClientManagerInterface::class)
69-
;
60+
return $this->client
61+
->getContainer()
62+
->get(ClientManagerInterface::class)
63+
;
7064
}
7165

7266
private function command(): Command

tests/Acceptance/DoctrineAccessTokenManagerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
use League\Bundle\OAuth2ServerBundle\Model\RefreshToken;
1212

1313
/**
14-
* @TODO This should be in the Integration tests folder but the current tests infrastructure would need improvements first.
14+
* @TODO This should be in the Integration tests folder but the current tests infrastructure would need improvements first.
15+
*
1516
* @covers \League\Bundle\OAuth2ServerBundle\Manager\Doctrine\AccessTokenManager
1617
*/
1718
final class DoctrineAccessTokenManagerTest extends AbstractAcceptanceTest

tests/Acceptance/DoctrineAuthCodeManagerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
use League\Bundle\OAuth2ServerBundle\Model\Client;
1111

1212
/**
13-
* @TODO This should be in the Integration tests folder but the current tests infrastructure would need improvements first.
13+
* @TODO This should be in the Integration tests folder but the current tests infrastructure would need improvements first.
14+
*
1415
* @covers \League\Bundle\OAuth2ServerBundle\Manager\Doctrine\AuthorizationCodeManager
1516
*/
1617
final class DoctrineAuthCodeManagerTest extends AbstractAcceptanceTest

tests/Acceptance/DoctrineClientManagerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1515

1616
/**
17-
* @TODO This should be in the Integration tests folder but the current tests infrastructure would need improvements first.
17+
* @TODO This should be in the Integration tests folder but the current tests infrastructure would need improvements first.
18+
*
1819
* @covers \League\Bundle\OAuth2ServerBundle\Manager\Doctrine\ClientManager
1920
*/
2021
final class DoctrineClientManagerTest extends AbstractAcceptanceTest

0 commit comments

Comments
 (0)