Passed
Branch master (802f32)
by Dāvis
03:41
created
DependencyInjection/Component/Captcha.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
             
45 45
             if (!isset($clientConfig['type'])) {
46 46
                 throw new InvalidConfigurationException(sprintf(
47
-                   'sludio_helper_captcha_client.clients.%s config entry is missing the "type" key.',
48
-                   $key
49
-               ));
47
+                    'sludio_helper_captcha_client.clients.%s config entry is missing the "type" key.',
48
+                    $key
49
+                ));
50 50
             }
51 51
 
52 52
             $this->type = $clientConfig['type'];
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         return $this->configurators[$type];
36 36
     }    
37 37
     
38
-    public function configure(ContainerBuilder &$container)
38
+    public function configure(ContainerBuilder&$container)
39 39
     {
40 40
         $clientConfigurations = $container->getParameter('sludio_helper.captcha.clients');
41 41
         foreach ($clientConfigurations as $key => $clientConfig) {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                 ));
62 62
             }
63 63
             
64
-            if(!in_array($this->type, $this->usedTypes)){
64
+            if (!in_array($this->type, $this->usedTypes)) {
65 65
                 $this->usedTypes[] = $this->type;
66 66
             } else {
67 67
                 throw new InvalidConfigurationException(sprintf(
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                 ));
71 71
             }
72 72
             
73
-            $node = $tree->root('sludio_helper_captcha_client/clients/' . $key);
73
+            $node = $tree->root('sludio_helper_captcha_client/clients/'.$key);
74 74
             $this->buildClientConfiguration($node);
75 75
             $config = $processor->process($tree->buildTree(), [$clientConfig]);
76 76
             $clientServiceKey = 'sludio_helper.captcha.client.'.$key;
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         }
82 82
     }
83 83
     
84
-    public function buildClientConfiguration(NodeDefinition &$node)
84
+    public function buildClientConfiguration(NodeDefinition&$node)
85 85
     {        
86 86
         $optionsNode = $node->children();
87 87
         $this->getConfigurator($this->getType())->buildConfiguration($optionsNode);
Please login to merge, or discard this patch.
DependencyInjection/Component/Extensionable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
 
8 8
 interface Extensionable
9 9
 {
10
-    public function configure(ContainerBuilder &$container);
10
+    public function configure(ContainerBuilder&$container);
11 11
 
12
-    public function buildClientConfiguration(NodeDefinition &$node);
12
+    public function buildClientConfiguration(NodeDefinition&$node);
13 13
 
14 14
     public function configureClient(ContainerBuilder $container, $clientServiceKey, array $options = []);
15 15
 }
Please login to merge, or discard this patch.
DependencyInjection/Component/Openidconnect.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 class Openidconnect implements Extensionable
12 12
 {
13
-    public function buildClientConfiguration(NodeDefinition &$node)
13
+    public function buildClientConfiguration(NodeDefinition&$node)
14 14
     {
15 15
         $optionsNode = $node->children();
16 16
         $optionsNode
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $optionsNode->end();
42 42
     }
43 43
 
44
-    private function buildUri(NodeDefinition &$node)
44
+    private function buildUri(NodeDefinition&$node)
45 45
     {
46 46
         $optionsNode = $node->children();
47 47
         $optionsNode
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
         ]);
65 65
     }
66 66
 
67
-    public function configure(ContainerBuilder &$container)
67
+    public function configure(ContainerBuilder&$container)
68 68
     {
69 69
         $clientConfigurations = $container->getParameter('sludio_helper.openidconnect.clients');
70 70
         foreach ($clientConfigurations as $key => $clientConfig) {
71 71
             $tree = new TreeBuilder();
72 72
             $processor = new Processor();
73
-            $node = $tree->root('sludio_helper_openidconnect_client/clients/' . $key);
73
+            $node = $tree->root('sludio_helper_openidconnect_client/clients/'.$key);
74 74
             $this->buildClientConfiguration($node);
75 75
             $config = $processor->process($tree->buildTree(), [$clientConfig]);
76 76
             $clientServiceKey = 'sludio_helper.openidconnect.client.'.$key;
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             foreach ($uriConfigurations as $subKey => $uriConfig) {
101 101
                 $tree = new TreeBuilder();
102 102
                 $processor = new Processor();
103
-                $node = $tree->root('sludio_helper_openidconnect_client/clients/' . $key . '/uris/' . $subKey);
103
+                $node = $tree->root('sludio_helper_openidconnect_client/clients/'.$key.'/uris/'.$subKey);
104 104
                 $this->buildUri($node);
105 105
                 $config = $processor->process($tree->buildTree(), [$uriConfig]);
106 106
                 $params = [];
Please login to merge, or discard this patch.
DependencyInjection/Component/Oauth.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -131,9 +131,9 @@
 block discarded – undo
131 131
 
132 132
             if (!isset($clientConfig['type'])) {
133 133
                 throw new InvalidConfigurationException(sprintf(
134
-                   'Your "sludio_helper_oauth_client.clients.%s" config entry is missing the "type" key.',
135
-                   $key
136
-               ));
134
+                    'Your "sludio_helper_oauth_client.clients.%s" config entry is missing the "type" key.',
135
+                    $key
136
+                ));
137 137
             }
138 138
 
139 139
             $this->type = $clientConfig['type'];
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         return $this->configurators[$type];
54 54
     }
55 55
 
56
-    public function buildClientConfiguration(NodeDefinition &$node)
56
+    public function buildClientConfiguration(NodeDefinition&$node)
57 57
     {
58 58
         $optionsNode = $node->children();
59 59
         $optionsNode
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         return $clientServiceKey;
122 122
     }
123 123
 
124
-    public function configure(ContainerBuilder &$container)
124
+    public function configure(ContainerBuilder&$container)
125 125
     {
126 126
         $clientConfigurations = $container->getParameter('sludio_helper.oauth.clients');
127 127
         $clientServiceKeys = [];
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                 ));
149 149
             }
150 150
 
151
-            $node = $tree->root('sludio_helper_oauth_client/clients/' . $key);
151
+            $node = $tree->root('sludio_helper_oauth_client/clients/'.$key);
152 152
             $this->buildClientConfiguration($node);
153 153
             $config = $processor->process($tree->buildTree(), [$clientConfig]);
154 154
 
Please login to merge, or discard this patch.
DependencyInjection/Component/Openid.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
 
11 11
 class Openid implements Extensionable
12 12
 {
13
-    public function configure(ContainerBuilder &$container)
13
+    public function configure(ContainerBuilder&$container)
14 14
     {
15 15
         $clientConfigurations = $container->getParameter('sludio_helper.openid.clients');
16 16
         foreach ($clientConfigurations as $key => $clientConfig) {
17 17
             $tree = new TreeBuilder();
18
-            $node = $tree->root('sludio_helper_openid_client/clients/' . $key);
18
+            $node = $tree->root('sludio_helper_openid_client/clients/'.$key);
19 19
             $this->buildClientConfiguration($node);
20 20
             $processor = new Processor();
21 21
             $config = $processor->process($tree->buildTree(), [$clientConfig]);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         }
50 50
     }
51 51
 
52
-    public function buildClientConfiguration(NodeDefinition &$node)
52
+    public function buildClientConfiguration(NodeDefinition&$node)
53 53
     {
54 54
         $optionsNode = $node->children();
55 55
         $optionsNode
Please login to merge, or discard this patch.
DependencyInjection/Extension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         $this->setExt(class_exists($className) ? new $className() : null);
15 15
     }
16 16
 
17
-    public function configure(ContainerBuilder &$container)
17
+    public function configure(ContainerBuilder&$container)
18 18
     {
19 19
         return $this->getExtension()->configure($container);
20 20
     }
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
                                 ->arrayNode('locales')
131 131
                                     ->beforeNormalization()
132 132
                                         ->ifString()
133
-                                            ->then(function ($v) {
133
+                                            ->then(function($v) {
134 134
                                                 return preg_split('/\s*,\s*/', $v);
135 135
                                             })
136 136
                                         ->end()
Please login to merge, or discard this patch.
Captcha/Configurator/ReCaptchaConfigurator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $resolver      = $clientServiceKey.'.resolver';
39 39
         $resolverClass = $container->getParameter($clientServiceKey.'.resolver_class');
40 40
 
41
-        $resolverDefinition  = $container->register($resolver, $resolverClass);
41
+        $resolverDefinition = $container->register($resolver, $resolverClass);
42 42
         $resolverDefinition->setPublic(false);
43 43
         $resolverDefinition->setArguments([
44 44
             $container->getParameter($clientServiceKey.'.locale_key'),
Please login to merge, or discard this patch.
Openidconnect/Provider/AccessToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         $parameters = parent::jsonSerialize();
30 30
         if ($this->idToken) {
31
-            $parameters['id_token'] = (string)$this->idToken;
31
+            $parameters['id_token'] = (string) $this->idToken;
32 32
         }
33 33
 
34 34
         return $parameters;
Please login to merge, or discard this patch.