@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | return $this->configurators[$type]; |
53 | 53 | } |
54 | 54 | |
55 | - public function buildClientConfiguration(NodeDefinition &$node) |
|
55 | + public function buildClientConfiguration(NodeDefinition & $node) |
|
56 | 56 | { |
57 | 57 | $optionsNode = $node->children(); |
58 | 58 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | return $clientServiceKey; |
115 | 115 | } |
116 | 116 | |
117 | - public function configure(ContainerBuilder &$container) |
|
117 | + public function configure(ContainerBuilder & $container) |
|
118 | 118 | { |
119 | 119 | $clientConfigurations = $container->getParameter('sludio_helper.oauth.clients'); |
120 | 120 | $clientServiceKeys = []; |
@@ -7,9 +7,9 @@ |
||
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 | } |
@@ -35,7 +35,7 @@ discard block |
||
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) { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | } |
72 | 72 | } |
73 | 73 | |
74 | - public function buildClientConfiguration(NodeDefinition &$node) |
|
74 | + public function buildClientConfiguration(NodeDefinition & $node) |
|
75 | 75 | { |
76 | 76 | $optionsNode = $node->children(); |
77 | 77 | $this->getConfigurator($this->getType())->buildConfiguration($optionsNode); |
@@ -10,7 +10,7 @@ discard block |
||
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 | $clientServiceKeys = []; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | } |
51 | 51 | } |
52 | 52 | |
53 | - public function buildClientConfiguration(NodeDefinition &$node) |
|
53 | + public function buildClientConfiguration(NodeDefinition & $node) |
|
54 | 54 | { |
55 | 55 | $optionsNode = $node->children(); |
56 | 56 |
@@ -10,7 +10,7 @@ discard block |
||
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 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $optionsNode->end(); |
46 | 46 | } |
47 | 47 | |
48 | - private function buildUri(NodeDefinition &$node) |
|
48 | + private function buildUri(NodeDefinition & $node) |
|
49 | 49 | { |
50 | 50 | $optionsNode = $node->children(); |
51 | 51 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | ]); |
71 | 71 | } |
72 | 72 | |
73 | - public function configure(ContainerBuilder &$container) |
|
73 | + public function configure(ContainerBuilder & $container) |
|
74 | 74 | { |
75 | 75 | $clientConfigurations = $container->getParameter('sludio_helper.openidconnect.clients'); |
76 | 76 | $clientServiceKeys = []; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | ->scalarNode('format') |
54 | 54 | ->beforeNormalization() |
55 | 55 | ->ifInArray(['clf', 'debug', 'short']) |
56 | - ->then(function ($v) { |
|
56 | + ->then(function($v) { |
|
57 | 57 | return constant('GuzzleHttp\MessageFormatter::'.strtoupper($v)); |
58 | 58 | }) |
59 | 59 | ->end() |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | 'emergency', 'alert', 'critical', 'error', |
66 | 66 | 'warning', 'notice', 'info', 'debug', |
67 | 67 | ]) |
68 | - ->then(function ($v) { |
|
68 | + ->then(function($v) { |
|
69 | 69 | return constant('Psr\Log\LogLevel::'.strtoupper($v)); |
70 | 70 | }) |
71 | 71 | ->end() |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $chunked = $this->headers->has('Transfer-Encoding'); |
25 | 25 | $this->content->seek(0); |
26 | 26 | |
27 | - for (; ;) { |
|
27 | + for (;;) { |
|
28 | 28 | $chunk = $this->content->read($this->bufferSize); |
29 | 29 | |
30 | 30 | if ($chunked) { |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | const NAME = 'sludio_helper.guzzle'; |
17 | 17 | |
18 | - public function configure(ContainerBuilder &$container) |
|
18 | + public function configure(ContainerBuilder & $container) |
|
19 | 19 | { |
20 | 20 | $dataCollector = $container->getDefinition(self::NAME.'.data_collector.guzzle'); |
21 | 21 | $dataCollector->replaceArgument(0, $container->getParameter(self::NAME.'.profiler')['max_body_size']); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | return false; |
74 | 74 | } |
75 | 75 | // @formatter:off |
76 | - $months = [31,28,31,30,31,30,31,31,30,31,30,31]; |
|
76 | + $months = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; |
|
77 | 77 | // @formatter:on |
78 | 78 | if ($year % 4 === 0) { |
79 | 79 | $months[1] = 29; |
@@ -87,15 +87,15 @@ discard block |
||
87 | 87 | $personCode = str_replace('-', '', $personCode); |
88 | 88 | // @formatter:off |
89 | 89 | $sum = |
90 | - (substr($personCode, 0, 1) * 1) + |
|
91 | - (substr($personCode, 1, 1) * 6) + |
|
92 | - (substr($personCode, 2, 1) * 3) + |
|
93 | - (substr($personCode, 3, 1) * 7) + |
|
94 | - (substr($personCode, 4, 1) * 9) + |
|
90 | + (substr($personCode, 0, 1) * 1) + |
|
91 | + (substr($personCode, 1, 1) * 6) + |
|
92 | + (substr($personCode, 2, 1) * 3) + |
|
93 | + (substr($personCode, 3, 1) * 7) + |
|
94 | + (substr($personCode, 4, 1) * 9) + |
|
95 | 95 | (substr($personCode, 5, 1) * 10) + |
96 | - (substr($personCode, 6, 1) * 5) + |
|
97 | - (substr($personCode, 7, 1) * 8) + |
|
98 | - (substr($personCode, 8, 1) * 4) + |
|
96 | + (substr($personCode, 6, 1) * 5) + |
|
97 | + (substr($personCode, 7, 1) * 8) + |
|
98 | + (substr($personCode, 8, 1) * 4) + |
|
99 | 99 | (substr($personCode, 9, 1) * 2); |
100 | 100 | // @formatter:on |
101 | 101 |