Passed
Push — master ( 621a2b...4bfebc )
by Matthieu
05:10
created
src/Resources/config/routing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use AtlassianConnectBundle\Controller\UnlicensedController;
8 8
 use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
9 9
 
10
-return function (RoutingConfigurator $routes) {
10
+return function(RoutingConfigurator $routes) {
11 11
     $routes
12 12
         ->add('atlassian_connect_descriptor', '/atlassian-connect.json')
13 13
             ->controller([DescriptorController::class, 'indexAction'])
Please login to merge, or discard this patch.
src/Resources/config/services.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
Tests/Command/RequestApiCommandTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Tests/Service/AtlassianRestClientTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Tests/Service/AuthenticatedAtlassianClientTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
Tests/Listener/LicenseListenerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Tests/Security/JWTSecurityHelperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Tests/Security/JWTUserProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Tests/Security/JWTAuthenticatorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.