Completed
Push — master ( 1fcc0d...8b279a )
by John
21:49
created
tests/functional/App/TestBundle.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 class TestBundle extends Bundle
21 21
 {
22 22
     /**
23
-     * @return ExtensionInterface
23
+     * @return boolean
24 24
      */
25 25
     public function getContainerExtension()
26 26
     {
Please login to merge, or discard this patch.
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/User/JwtUserProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,10 +94,10 @@
 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/DependencyInjection/JwtAuthenticationFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,12 +39,12 @@
 block discarded – undo
39 39
 
40 40
     public function create(ContainerBuilder $container, $id, $config, $userProvider, $defaultEntryPoint)
41 41
     {
42
-        $providerId = 'security.authentication.provider.jwt.' . $id;
42
+        $providerId = 'security.authentication.provider.jwt.'.$id;
43 43
         $container
44 44
             ->setDefinition($providerId, new DefinitionDecorator('jwt.security.authentication.provider'))
45 45
             ->replaceArgument(0, new Reference($userProvider));
46 46
 
47
-        $listenerId = 'security.authentication.listener.jwt.' . $id;
47
+        $listenerId = 'security.authentication.listener.jwt.'.$id;
48 48
         $container->setDefinition($listenerId, new DefinitionDecorator('jwt.security.authentication.listener'));
49 49
 
50 50
         return [$providerId, $listenerId, $defaultEntryPoint];
Please login to merge, or discard this patch.
src/DependencyInjection/KleijnWebJwtExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     public function load(array $configs, ContainerBuilder $container)
27 27
     {
28 28
         $config = $this->processConfiguration(new Configuration(), $configs);
29
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
29
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
30 30
         $loader->load('services.yml');
31 31
 
32 32
         $keys = [];
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         foreach ($config['keys'] as $keyId => $keyConfig) {
35 35
 
36 36
             $keyConfig['kid'] = $keyId;
37
-            $keyDefinition    = new Definition('jwt.keys.' . $keyId);
37
+            $keyDefinition    = new Definition('jwt.keys.'.$keyId);
38 38
             $keyDefinition->setClass('KleijnWeb\JwtBundle\Jwt\JwtKey');
39 39
 
40 40
             if (isset($keyConfig['loader'])) {
Please login to merge, or discard this patch.
src/Jwt/JwtKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
         if ($this->requiredClaims) {
156 156
             $missing = array_diff_key(array_flip($this->requiredClaims), $claims);
157 157
             if (count($missing)) {
158
-                throw new MissingClaimsException("Missing claims: " . implode(', ', $missing));
158
+                throw new MissingClaimsException("Missing claims: ".implode(', ', $missing));
159 159
             }
160 160
         }
161 161
         if ($this->issuer && !isset($claims['iss'])) {
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
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
      */
27 27
     public function registerContainerConfiguration(LoaderInterface $loader)
28 28
     {
29
-        $loader->load(__DIR__ . '/config_' . $this->getEnvironment() .'.yml');
29
+        $loader->load(__DIR__.'/config_'.$this->getEnvironment().'.yml');
30 30
     }
31 31
 }
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.