@@ -25,7 +25,7 @@ |
||
25 | 25 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; |
26 | 26 | use Twig\Environment; |
27 | 27 | |
28 | -return static function (ContainerConfigurator $container) { |
|
28 | +return static function(ContainerConfigurator $container) { |
|
29 | 29 | $container->parameters() |
30 | 30 | ->set('atlassian_connect_license_listener_class', LicenseListener::class) |
31 | 31 | ->set('atlassian_connect_jwt_user_provider_class', JWTUserProvider::class) |
@@ -15,8 +15,8 @@ |
||
15 | 15 | |
16 | 16 | final class RequestApiCommandTest extends TestCase |
17 | 17 | { |
18 | - private TenantRepositoryInterface|MockObject $tenantRepository; |
|
19 | - private AtlassianRestClientInterface|MockObject$restClient; |
|
18 | + private TenantRepositoryInterface | MockObject $tenantRepository; |
|
19 | + private AtlassianRestClientInterface | MockObject$restClient; |
|
20 | 20 | private CommandTester $commandTester; |
21 | 21 | |
22 | 22 | protected function setUp(): void |
@@ -19,8 +19,8 @@ |
||
19 | 19 | { |
20 | 20 | private const APP_URL = 'https://app.atlassian.com'; |
21 | 21 | |
22 | - private HttpClientInterface|MockObject $client; |
|
23 | - private TokenStorageInterface|MockObject $tokenStorage; |
|
22 | + private HttpClientInterface | MockObject $client; |
|
23 | + private TokenStorageInterface | MockObject $tokenStorage; |
|
24 | 24 | private AtlassianRestClient $restClient; |
25 | 25 | |
26 | 26 | protected function setUp(): void |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | final class AuthenticatedAtlassianClientTest extends TestCase |
15 | 15 | { |
16 | - private HttpClientInterface|MockObject $inner; |
|
16 | + private HttpClientInterface | MockObject $inner; |
|
17 | 17 | private AuthenticatedAtlassianClient $client; |
18 | 18 | |
19 | 19 | protected function setUp(): void |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $this->inner |
28 | 28 | ->expects($this->once()) |
29 | 29 | ->method('request') |
30 | - ->with('GET', 'https://app.atlassian.com/resource', $this->callback(function (array $options): bool { |
|
30 | + ->with('GET', 'https://app.atlassian.com/resource', $this->callback(function(array $options): bool { |
|
31 | 31 | $this->assertArrayHasKey('Authorization', $options['headers']); |
32 | 32 | $this->assertStringStartsWith('JWT', $options['headers']['Authorization']); |
33 | 33 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | ->method('request') |
52 | 52 | ->withConsecutive( |
53 | 53 | ['POST', 'https://oauth-2-authorization-server.services.atlassian.com/oauth2/token', $this->anything()], |
54 | - ['GET', 'https://app.atlassian.com/resource', $this->callback(function (array $options): bool { |
|
54 | + ['GET', 'https://app.atlassian.com/resource', $this->callback(function(array $options): bool { |
|
55 | 55 | $this->assertEquals('Bearer token', $options['headers']['Authorization']); |
56 | 56 | |
57 | 57 | return true; |
@@ -20,9 +20,9 @@ |
||
20 | 20 | |
21 | 21 | final class LicenseListenerTest extends TestCase |
22 | 22 | { |
23 | - private KernelInterface|MockObject $kernel; |
|
24 | - private RouterInterface|MockObject $router; |
|
25 | - private TokenStorageInterface|MockObject $tokenStorage; |
|
23 | + private KernelInterface | MockObject $kernel; |
|
24 | + private RouterInterface | MockObject $router; |
|
25 | + private TokenStorageInterface | MockObject $tokenStorage; |
|
26 | 26 | |
27 | 27 | protected function setUp(): void |
28 | 28 | { |
@@ -13,7 +13,7 @@ |
||
13 | 13 | |
14 | 14 | final class JWTSecurityHelperTest extends TestCase |
15 | 15 | { |
16 | - private TenantRepositoryInterface|MockObject $repository; |
|
16 | + private TenantRepositoryInterface | MockObject $repository; |
|
17 | 17 | private JWTSecurityHelper $helper; |
18 | 18 | |
19 | 19 | protected function setUp(): void |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | final class JWTUserProviderTest extends TestCase |
19 | 19 | { |
20 | - private TenantRepositoryInterface|MockObject $repository; |
|
20 | + private TenantRepositoryInterface | MockObject $repository; |
|
21 | 21 | private JWTUserProvider $userProvider; |
22 | 22 | |
23 | 23 | protected function setUp(): void |
@@ -21,8 +21,8 @@ |
||
21 | 21 | |
22 | 22 | final class JWTAuthenticatorTest extends TestCase |
23 | 23 | { |
24 | - private JWTUserProviderInterface|MockObject $userProvider; |
|
25 | - private JWTSecurityHelperInterface|MockObject $securityHelper; |
|
24 | + private JWTUserProviderInterface | MockObject $userProvider; |
|
25 | + private JWTSecurityHelperInterface | MockObject $securityHelper; |
|
26 | 26 | private JWTAuthenticator $jwtAuthenticator; |
27 | 27 | |
28 | 28 | protected function setUp(): void |