GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#184)
by Evgenij
02:05
created
src/DependencyInjection/Configuration.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                     ->scalarNode('base_url')
79 79
                         ->defaultValue(null)
80 80
                         ->validate()
81
-                            ->ifTrue(function ($v) {
81
+                            ->ifTrue(function($v) {
82 82
                                 return !is_string($v);
83 83
                             })
84 84
                             ->thenInvalid('base_url can be: string')
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                     ->end()
87 87
                     ->arrayNode('options')
88 88
                         ->validate()
89
-                            ->ifTrue(function ($options) {
89
+                            ->ifTrue(function($options) {
90 90
                                 return count($options['form_params']) && count($options['multipart']);
91 91
                             })
92 92
                             ->thenInvalid('You cannot use form_params and multipart at the same time.')
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                             ->end()
100 100
                             ->variableNode('allow_redirects')
101 101
                                 ->validate()
102
-                                    ->ifTrue(function ($v) {
102
+                                    ->ifTrue(function($v) {
103 103
                                         return !is_array($v) && !is_bool($v);
104 104
                                     })
105 105
                                     ->thenInvalid('allow_redirects can be: bool or array')
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                             ->end()
108 108
                             ->variableNode('auth')
109 109
                                 ->validate()
110
-                                    ->ifTrue(function ($v) {
110
+                                    ->ifTrue(function($v) {
111 111
                                         return !is_array($v) && !is_string($v);
112 112
                                     })
113 113
                                     ->thenInvalid('auth can be: string or array')
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                             ->end()
116 116
                             ->variableNode('query')
117 117
                                 ->validate()
118
-                                    ->ifTrue(function ($v) {
118
+                                    ->ifTrue(function($v) {
119 119
                                         return !is_string($v) && !is_array($v);
120 120
                                     })
121 121
                                     ->thenInvalid('query can be: string or array')
@@ -124,16 +124,16 @@  discard block
 block discarded – undo
124 124
                             ->arrayNode('curl')
125 125
                                 ->beforeNormalization()
126 126
                                     ->ifArray()
127
-                                        ->then(function (array $curlOptions) {
127
+                                        ->then(function(array $curlOptions) {
128 128
                                             $result = [];
129 129
 
130 130
                                             foreach ($curlOptions as $key => $value) {
131
-                                                $optionName = 'CURLOPT_' . strtoupper($key);
131
+                                                $optionName = 'CURLOPT_'.strtoupper($key);
132 132
 
133 133
                                                 if (!defined($optionName)) {
134 134
                                                     throw new InvalidConfigurationException(sprintf(
135
-                                                        'Invalid curl option in eight_points_guzzle: %s. ' .
136
-                                                        'Ex: use sslversion for CURLOPT_SSLVERSION option. ' . PHP_EOL .
135
+                                                        'Invalid curl option in eight_points_guzzle: %s. '.
136
+                                                        'Ex: use sslversion for CURLOPT_SSLVERSION option. '.PHP_EOL.
137 137
                                                         'See all available options: http://php.net/manual/en/function.curl-setopt.php',
138 138
                                                         $key
139 139
                                                     ));
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                             ->end()
151 151
                             ->variableNode('cert')
152 152
                                 ->validate()
153
-                                    ->ifTrue(function ($v) {
153
+                                    ->ifTrue(function($v) {
154 154
                                         return !is_string($v) && (!is_array($v) || count($v) !== 2);
155 155
                                     })
156 156
                                     ->thenInvalid('cert can be: string or array with two entries (path and password)')
@@ -159,12 +159,12 @@  discard block
 block discarded – undo
159 159
                             ->scalarNode('connect_timeout')
160 160
                                 ->example('%env(float:CONNECT_TIMEOUT)%')
161 161
                                 ->beforeNormalization()
162
-                                    ->always(function ($v) {
162
+                                    ->always(function($v) {
163 163
                                         return is_numeric($v) ? (float) $v : $v;
164 164
                                     })
165 165
                                 ->end()
166 166
                                 ->validate()
167
-                                    ->ifTrue(function ($v) {
167
+                                    ->ifTrue(function($v) {
168 168
                                         return !is_float($v) && !(is_string($v) && strpos($v, 'env_') === 0);
169 169
                                     })
170 170
                                     ->thenInvalid('connect_timeout can be: float')
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                             ->booleanNode('debug')->end()
174 174
                             ->variableNode('decode_content')
175 175
                                 ->validate()
176
-                                    ->ifTrue(function ($v) {
176
+                                    ->ifTrue(function($v) {
177 177
                                         return !is_string($v) && !is_bool($v);
178 178
                                     })
179 179
                                     ->thenInvalid('decode_content can be: bool or string (gzip, compress, deflate, etc...)')
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                             ->end()
191 191
                             ->scalarNode('sink')
192 192
                                 ->validate()
193
-                                    ->ifTrue(function ($v) {
193
+                                    ->ifTrue(function($v) {
194 194
                                         return !is_string($v);
195 195
                                     })
196 196
                                     ->thenInvalid('sink can be: string')
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
                             ->booleanNode('http_errors')->end()
200 200
                             ->variableNode('expect')
201 201
                                 ->validate()
202
-                                    ->ifTrue(function ($v) {
202
+                                    ->ifTrue(function($v) {
203 203
                                         return !is_bool($v) && !is_int($v);
204 204
                                     })
205 205
                                     ->thenInvalid('expect can be: bool or int')
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                             ->end()
208 208
                             ->variableNode('ssl_key')
209 209
                                 ->validate()
210
-                                    ->ifTrue(function ($v) {
210
+                                    ->ifTrue(function($v) {
211 211
                                         return !is_string($v) && (!is_array($v) || count($v) !== 2);
212 212
                                     })
213 213
                                     ->thenInvalid('ssl_key can be: string or array with two entries (path and password)')
@@ -218,12 +218,12 @@  discard block
 block discarded – undo
218 218
                             ->scalarNode('read_timeout')
219 219
                                 ->example('%env(float:READ_TIMEOUT)%')
220 220
                                 ->beforeNormalization()
221
-                                    ->always(function ($v) {
221
+                                    ->always(function($v) {
222 222
                                         return is_numeric($v) ? (float) $v : $v;
223 223
                                     })
224 224
                                 ->end()
225 225
                                 ->validate()
226
-                                    ->ifTrue(function ($v) {
226
+                                    ->ifTrue(function($v) {
227 227
                                         return !is_float($v) && !(is_string($v) && strpos($v, 'env_') === 0);
228 228
                                     })
229 229
                                     ->thenInvalid('read_timeout can be: float')
@@ -232,12 +232,12 @@  discard block
 block discarded – undo
232 232
                             ->scalarNode('timeout')
233 233
                                 ->example('%env(float:TIMEOUT)%')
234 234
                                 ->beforeNormalization()
235
-                                    ->always(function ($v) {
235
+                                    ->always(function($v) {
236 236
                                         return is_numeric($v) ? (float) $v : $v;
237 237
                                     })
238 238
                                 ->end()
239 239
                                 ->validate()
240
-                                    ->ifTrue(function ($v) {
240
+                                    ->ifTrue(function($v) {
241 241
                                         return !is_float($v) && !(is_string($v) && strpos($v, 'env_') === 0);
242 242
                                     })
243 243
                                     ->thenInvalid('timeout can be: float')
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
                             ->end()
246 246
                             ->variableNode('verify')
247 247
                                 ->validate()
248
-                                    ->ifTrue(function ($v) {
248
+                                    ->ifTrue(function($v) {
249 249
                                         return !is_bool($v) && !is_string($v);
250 250
                                     })
251 251
                                     ->thenInvalid('verify can be: bool or string')
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
                             ->end()
276 276
                             ->scalarNode('version')
277 277
                                 ->validate()
278
-                                    ->ifTrue(function ($v) {
278
+                                    ->ifTrue(function($v) {
279 279
                                         return !is_string($v) && !is_float($v);
280 280
                                     })
281 281
                                     ->thenInvalid('version can be: string or float')
Please login to merge, or discard this patch.