Completed
Push — master ( ff92f6...3ef1d3 )
by John
09:08
created
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.
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.
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.