Completed
Push — master ( 7050ad...b7b944 )
by John
13s
created
tests/functional/FunctionalTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         $client = $this->createClient();
97 97
         $server = [];
98 98
         if ($token) {
99
-            $server = ['HTTP_AUTHORIZATION' => 'Bearer ' . $token];
99
+            $server = ['HTTP_AUTHORIZATION' => 'Bearer '.$token];
100 100
         }
101 101
         $client->request('GET', $url, $parameters = [], $files = [], $server);
102 102
 
Please login to merge, or discard this patch.
tests/functional/TestCacheSmashingPHPUnitListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
             return;
69 69
         }
70 70
 
71
-        $dir = __DIR__ . '/App/app/cache';
71
+        $dir = __DIR__.'/App/app/cache';
72 72
 
73 73
         if (!is_dir($dir)) {
74 74
             return;
Please login to merge, or discard this patch.
src/Firewall/JwtAuthenticationListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     {
71 71
         $tokenString = $request->headers->get($this->header);
72 72
 
73
-        if ($this->header == self::HEADER_AUTH && 0 === strpos((string)$tokenString, 'Bearer ')) {
73
+        if ($this->header == self::HEADER_AUTH && 0 === strpos((string) $tokenString, 'Bearer ')) {
74 74
             $tokenString = substr($tokenString, 7);
75 75
         }
76 76
 
Please login to merge, or discard this patch.
tests/unit/Jwt/JwtKeyTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function validateTokenWillCallVerifySignatureOnToken()
70 70
     {
71
-        $secret = (string)rand();
71
+        $secret = (string) rand();
72 72
         $key    = new JwtKey(['secret' => $secret]);
73 73
         $key->validateToken($this->createTokenMock($secret, $key));
74 74
     }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function canLoadSecretFromLoader()
89 89
     {
90
-        $secret = (string)rand();
90
+        $secret = (string) rand();
91 91
         $token  = $this->createTokenMock($secret);
92 92
 
93 93
         $loaderMock = $this->getMockBuilder(SecretLoader::class)->getMock();
Please login to merge, or discard this patch.
tests/unit/Firewall/JwtAuthenticationListenerTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $mock = $this->authenticationManagerMock;
62 62
         $mock->expects($this->once())
63 63
             ->method('authenticate')
64
-            ->with($this->callback(function (JwtAuthenticationToken $token) use ($tokenString) {
64
+            ->with($this->callback(function(JwtAuthenticationToken $token) use ($tokenString) {
65 65
                 return $token->getCredentials() === $tokenString;
66 66
             }));
67 67
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $mock = $this->authenticationManagerMock;
83 83
         $mock->expects($this->once())
84 84
             ->method('authenticate')
85
-            ->with($this->callback(function (JwtAuthenticationToken $token) use ($tokenString) {
85
+            ->with($this->callback(function(JwtAuthenticationToken $token) use ($tokenString) {
86 86
                 return $token->getCredentials() === $tokenString;
87 87
             }));
88 88
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $mock = $this->authenticationManagerMock;
104 104
         $mock->expects($this->once())
105 105
             ->method('authenticate')
106
-            ->with($this->callback(function (JwtAuthenticationToken $token) use ($tokenString) {
106
+            ->with($this->callback(function(JwtAuthenticationToken $token) use ($tokenString) {
107 107
                 return $token->getCredentials() === $tokenString;
108 108
             }));
109 109
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         $mock = $this->authenticationManagerMock;
144 144
         $mock->expects($this->once())
145 145
             ->method('authenticate')
146
-            ->willReturnCallback(function () use ($authenticatedToken) {
146
+            ->willReturnCallback(function() use ($authenticatedToken) {
147 147
                 return $authenticatedToken;
148 148
             });
149 149
 
Please login to merge, or discard this patch.
tests/functional/App/app/TestKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,6 +29,6 @@
 block discarded – undo
29 29
      */
30 30
     public function registerContainerConfiguration(LoaderInterface $loader)
31 31
     {
32
-        $loader->load(__DIR__ . '/config_' . $this->getEnvironment() . '.yml');
32
+        $loader->load(__DIR__.'/config_'.$this->getEnvironment().'.yml');
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
src/User/JwtUser.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
  * This file is part of the KleijnWeb\JwtBundle package.
4 4
  *
Please login to merge, or discard this patch.
src/User/JwtUserProvider.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
  * This file is part of the KleijnWeb\JwtBundle package.
4 4
  *
@@ -94,10 +94,10 @@  discard block
 block discarded – undo
94 94
             if ($claimKey === 'aud') {
95 95
                 if (is_array($claimValue)) {
96 96
                     foreach ($claimValue as $role) {
97
-                        $roles[] = "ROLE_" . strtoupper($role);
97
+                        $roles[] = "ROLE_".strtoupper($role);
98 98
                     }
99 99
                 } elseif (is_string($claimValue)) {
100
-                    $roles[] = "ROLE_" . strtoupper($claimValue);
100
+                    $roles[] = "ROLE_".strtoupper($claimValue);
101 101
                 }
102 102
             }
103 103
         }
Please login to merge, or discard this patch.
src/User/UnsafeGroupsUserInterface.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
  * This file is part of the KleijnWeb\JwtBundle package.
4 4
  *
Please login to merge, or discard this patch.