@@ -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 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 | foreach ($clientConfigurations as $key => $clientConfig) { |
@@ -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 = []; |
@@ -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 | foreach ($clientConfigurations as $key => $clientConfig) { |
@@ -49,7 +49,7 @@ discard block |
||
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 |
@@ -205,7 +205,7 @@ |
||
205 | 205 | $result = $sth->fetch(); |
206 | 206 | |
207 | 207 | if (isset($result['AUTO_INCREMENT'])) { |
208 | - return (int)$result['AUTO_INCREMENT']; |
|
208 | + return (int) $result['AUTO_INCREMENT']; |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | return 1; |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | private function setMaximumVisible($maximumVisible) |
42 | 42 | { |
43 | - $maximumVisible = (int)$maximumVisible; |
|
43 | + $maximumVisible = (int) $maximumVisible; |
|
44 | 44 | $this->guardMaximumVisibleMinimumValue($maximumVisible); |
45 | 45 | $this->maximumVisible = $maximumVisible; |
46 | 46 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | private function getSingleOmissionBreakpoint() |
110 | 110 | { |
111 | - return (int)floor($this->maximumVisible / 2) + 1; |
|
111 | + return (int) floor($this->maximumVisible / 2) + 1; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
@@ -155,11 +155,11 @@ discard block |
||
155 | 155 | // Determine where the omitted chunk of pages will be. |
156 | 156 | if ($this->hasSingleOmittedChunkNearLastPage($currentPage)) { |
157 | 157 | $rest = $this->maximumVisible - $currentPage; |
158 | - $omitPagesFrom = ((int)ceil($rest / 2)) + $currentPage; |
|
158 | + $omitPagesFrom = ((int) ceil($rest / 2)) + $currentPage; |
|
159 | 159 | $omitPagesTo = $totalPages - ($this->maximumVisible - $omitPagesFrom); |
160 | 160 | } else { |
161 | 161 | $rest = $this->maximumVisible - ($totalPages - $currentPage); |
162 | - $omitPagesFrom = (int)ceil($rest / 2); |
|
162 | + $omitPagesFrom = (int) ceil($rest / 2); |
|
163 | 163 | $omitPagesTo = ($currentPage - ($rest - $omitPagesFrom)); |
164 | 164 | } |
165 | 165 |
@@ -71,7 +71,7 @@ |
||
71 | 71 | private function suffixFunctionName($functionName) |
72 | 72 | { |
73 | 73 | // Make sure the function name is not suffixed twice. |
74 | - $functionName = preg_replace('/(_pagination)$/', '', (string)$functionName); |
|
74 | + $functionName = preg_replace('/(_pagination)$/', '', (string) $functionName); |
|
75 | 75 | |
76 | 76 | return $functionName.'_pagination'; |
77 | 77 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | ]; |
96 | 96 | |
97 | 97 | // backwards compatibility with less than v2.8 |
98 | - if ((float)substr($this->graphApiVersion, 1) < 2.8) { |
|
98 | + if ((float) substr($this->graphApiVersion, 1) < 2.8) { |
|
99 | 99 | $fields[] = 'bio'; |
100 | 100 | } |
101 | 101 | |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | public function getLongLivedAccessToken($accessToken) |
117 | 117 | { |
118 | 118 | $params = [ |
119 | - 'fb_exchange_token' => (string)$accessToken, |
|
119 | + 'fb_exchange_token' => (string) $accessToken, |
|
120 | 120 | ]; |
121 | 121 | |
122 | 122 | return $this->getAccessToken('fb_exchange_token', $params); |
@@ -19,6 +19,6 @@ |
||
19 | 19 | |
20 | 20 | protected static function fromResponse(ResponseInterface $response, $message = null) |
21 | 21 | { |
22 | - return new static($message, $response->getStatusCode(), (string)$response->getBody()); |
|
22 | + return new static($message, $response->getStatusCode(), (string) $response->getBody()); |
|
23 | 23 | } |
24 | 24 | } |