Passed
Pull Request — master (#67)
by Matthieu
05:02
created
src/Security/JWTAuthenticator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
66 66
     {
67
-        return new Response('Authentication Failed: ' . $exception->getMessage(), 403);
67
+        return new Response('Authentication Failed: '.$exception->getMessage(), 403);
68 68
     }
69 69
 
70 70
     public function start(Request $request, AuthenticationException $authException = null): Response
Please login to merge, or discard this patch.
src/Security/LegacyJWTAuthenticator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 
89 89
     public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
90 90
     {
91
-        return new Response('Authentication Failed: ' . $exception->getMessage(), 403);
91
+        return new Response('Authentication Failed: '.$exception->getMessage(), 403);
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.
src/Resources/config/routing.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 use AtlassianConnectBundle\Controller\DescriptorController;
4 4
 use AtlassianConnectBundle\Controller\HandshakeController;
5 5
 use AtlassianConnectBundle\Controller\UnlicensedController;
6 6
 use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
7 7
 
8
-return function (RoutingConfigurator $routes) {
8
+return function(RoutingConfigurator $routes) {
9 9
     $routes
10 10
         ->add('atlassian_connect_descriptor', '/atlassian-connect.json')
11 11
             ->controller([DescriptorController::class, 'indexAction'])
Please login to merge, or discard this patch.
Tests/Functional/LicenseListenerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 {
9 9
     public function testLicenseListenerIsOk(): void
10 10
     {
11
-        $client = self::createClient(['environment' => 'prod'], ['HTTP_AUTHORIZATION' => 'Bearer ' . $this->getTenantJWTCode()]);
11
+        $client = self::createClient(['environment' => 'prod'], ['HTTP_AUTHORIZATION' => 'Bearer '.$this->getTenantJWTCode()]);
12 12
 
13 13
         $client->request('GET', '/protected/license-route');
14 14
         $this->assertResponseIsSuccessful();
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
     public function testLicenseListenerFails(): void
18 18
     {
19
-        $client = self::createClient(['environment' => 'prod'], ['HTTP_AUTHORIZATION' => 'Bearer ' . $this->getTenantJWTCode('not_whitelisted')]);
19
+        $client = self::createClient(['environment' => 'prod'], ['HTTP_AUTHORIZATION' => 'Bearer '.$this->getTenantJWTCode('not_whitelisted')]);
20 20
 
21 21
         $client->request('GET', '/protected/license-route');
22 22
         $this->assertResponseRedirects('/protected/unlicensed');
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function testLicenseListenerWorksInDev(): void
26 26
     {
27
-        $client = self::createClient(['environment' => 'dev'], ['HTTP_AUTHORIZATION' => 'Bearer ' . $this->getTenantJWTCode('not_whitelisted')]);
27
+        $client = self::createClient(['environment' => 'dev'], ['HTTP_AUTHORIZATION' => 'Bearer '.$this->getTenantJWTCode('not_whitelisted')]);
28 28
 
29 29
         $client->request('GET', '/protected/license-route');
30 30
         $this->assertResponseIsSuccessful();
Please login to merge, or discard this patch.