Passed
Push — master ( 3ba746...d2f042 )
by Matthieu
06:24
created
Tests/Security/JWTUserProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace AtlassianConnectBundle\Tests\Security;
4 4
 
Please login to merge, or discard this patch.
Tests/Listener/LicenseListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace AtlassianConnectBundle\Tests\Listener;
4 4
 
Please login to merge, or discard this patch.
src/Service/GuzzleJWTMiddleware.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace AtlassianConnectBundle\Service;
4 4
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     public static function authTokenMiddleware(string $issuer, string $secret): callable
24 24
     {
25 25
         return Middleware::mapRequest(
26
-            static function (RequestInterface $request) use ($issuer, $secret) {
26
+            static function(RequestInterface $request) use ($issuer, $secret) {
27 27
                 return $request->withHeader(
28 28
                     'Authorization',
29 29
                     'JWT '.JWTGenerator::generate($request, $issuer, $secret)
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         string $username
50 50
     ): callable {
51 51
         return Middleware::mapRequest(
52
-            static function (RequestInterface $request) use ($client, $oauthClientId, $secret, $baseUrl, $username) {
52
+            static function(RequestInterface $request) use ($client, $oauthClientId, $secret, $baseUrl, $username) {
53 53
                 return $request
54 54
                     ->withHeader('Accept', 'application/json')
55 55
                     ->withHeader(
Please login to merge, or discard this patch.
Tests/Service/GuzzleJWTMiddlewareTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace AtlassianConnectBundle\Tests\Service;
4 4
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $middleware = GuzzleJWTMiddleware::authTokenMiddleware('atlassian-connect', 'secret');
25 25
 
26
-        $invokable = $middleware(function (Request $request, array $options) {
26
+        $invokable = $middleware(function(Request $request, array $options) {
27 27
             $this->assertTrue($request->hasHeader('Authorization'));
28 28
             $this->assertTrue($request->hasHeader('existing-header'));
29 29
             $this->assertSame('GET', $request->getMethod());
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             'username'
56 56
         );
57 57
 
58
-        $invokable = $middleware(function (Request $request, array $options) {
58
+        $invokable = $middleware(function(Request $request, array $options) {
59 59
             $this->assertSame('application/json', $request->getHeader('Accept')[0]);
60 60
             $this->assertSame('Bearer token', $request->getHeader('Authorization')[0]);
61 61
             $this->assertEquals(new Uri('https://atlassian.io/api/test'), $request->getUri());
Please login to merge, or discard this patch.
Tests/Security/LegacyJWTAuthenticatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace AtlassianConnectBundle\Tests\Security;
4 4
 
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
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace AtlassianConnectBundle\Security;
4 4
 
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
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace AtlassianConnectBundle\Tests\Security;
4 4
 
Please login to merge, or discard this patch.
src/Security/JWTSecurityHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace AtlassianConnectBundle\Security;
4 4
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     private function findTenantJWT(Request $request): ?string
111 111
     {
112
-        if (!$this->devTenant || $this->environment  !== 'dev') {
112
+        if (!$this->devTenant || $this->environment !== 'dev') {
113 113
             return null;
114 114
         }
115 115
 
Please login to merge, or discard this patch.
src/Security/JWTSecurityHelperInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace AtlassianConnectBundle\Security;
4 4
 
Please login to merge, or discard this patch.