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 (#221)
by
unknown
09:21 queued 04:36
created
src/DependencyInjection/Configuration.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                     ->scalarNode('base_url')
80 80
                         ->defaultValue(null)
81 81
                         ->validate()
82
-                            ->ifTrue(function ($v) {
82
+                            ->ifTrue(function($v) {
83 83
                                 return !is_string($v);
84 84
                             })
85 85
                             ->thenInvalid('base_url can be: string')
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                     ->booleanNode('lazy')->defaultValue(false)->end()
89 89
                     ->arrayNode('options')
90 90
                         ->validate()
91
-                            ->ifTrue(function ($options) {
91
+                            ->ifTrue(function($options) {
92 92
                                 return count($options['form_params']) && count($options['multipart']);
93 93
                             })
94 94
                             ->thenInvalid('You cannot use form_params and multipart at the same time.')
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                             ->end()
102 102
                             ->variableNode('allow_redirects')
103 103
                                 ->validate()
104
-                                    ->ifTrue(function ($v) {
104
+                                    ->ifTrue(function($v) {
105 105
                                         return !is_array($v) && !is_bool($v);
106 106
                                     })
107 107
                                     ->thenInvalid('allow_redirects can be: bool or array')
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                             ->end()
110 110
                             ->variableNode('auth')
111 111
                                 ->validate()
112
-                                    ->ifTrue(function ($v) {
112
+                                    ->ifTrue(function($v) {
113 113
                                         return !is_array($v) && !is_string($v);
114 114
                                     })
115 115
                                     ->thenInvalid('auth can be: string or array')
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                             ->end()
118 118
                             ->variableNode('query')
119 119
                                 ->validate()
120
-                                    ->ifTrue(function ($v) {
120
+                                    ->ifTrue(function($v) {
121 121
                                         return !is_string($v) && !is_array($v);
122 122
                                     })
123 123
                                     ->thenInvalid('query can be: string or array')
@@ -126,16 +126,16 @@  discard block
 block discarded – undo
126 126
                             ->arrayNode('curl')
127 127
                                 ->beforeNormalization()
128 128
                                     ->ifArray()
129
-                                        ->then(function (array $curlOptions) {
129
+                                        ->then(function(array $curlOptions) {
130 130
                                             $result = [];
131 131
 
132 132
                                             foreach ($curlOptions as $key => $value) {
133
-                                                $optionName = 'CURLOPT_' . strtoupper($key);
133
+                                                $optionName = 'CURLOPT_'.strtoupper($key);
134 134
 
135 135
                                                 if (!defined($optionName)) {
136 136
                                                     throw new InvalidConfigurationException(sprintf(
137
-                                                        'Invalid curl option in eight_points_guzzle: %s. ' .
138
-                                                        'Ex: use sslversion for CURLOPT_SSLVERSION option. ' . PHP_EOL .
137
+                                                        'Invalid curl option in eight_points_guzzle: %s. '.
138
+                                                        'Ex: use sslversion for CURLOPT_SSLVERSION option. '.PHP_EOL.
139 139
                                                         'See all available options: http://php.net/manual/en/function.curl-setopt.php',
140 140
                                                         $key
141 141
                                                     ));
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                             ->end()
153 153
                             ->variableNode('cert')
154 154
                                 ->validate()
155
-                                    ->ifTrue(function ($v) {
155
+                                    ->ifTrue(function($v) {
156 156
                                         return !is_string($v) && (!is_array($v) || count($v) !== 2);
157 157
                                     })
158 158
                                     ->thenInvalid('cert can be: string or array with two entries (path and password)')
@@ -160,12 +160,12 @@  discard block
 block discarded – undo
160 160
                             ->end()
161 161
                             ->scalarNode('connect_timeout')
162 162
                                 ->beforeNormalization()
163
-                                    ->always(function ($v) {
163
+                                    ->always(function($v) {
164 164
                                         return is_numeric($v) ? (float) $v : $v;
165 165
                                     })
166 166
                                 ->end()
167 167
                                 ->validate()
168
-                                    ->ifTrue(function ($v) {
168
+                                    ->ifTrue(function($v) {
169 169
                                         return !is_float($v) && !(is_string($v) && strpos($v, 'env_') === 0);
170 170
                                     })
171 171
                                     ->thenInvalid('connect_timeout can be: float')
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                             ->booleanNode('debug')->end()
175 175
                             ->variableNode('decode_content')
176 176
                                 ->validate()
177
-                                    ->ifTrue(function ($v) {
177
+                                    ->ifTrue(function($v) {
178 178
                                         return !is_string($v) && !is_bool($v);
179 179
                                     })
180 180
                                     ->thenInvalid('decode_content can be: bool or string (gzip, compress, deflate, etc...)')
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
                             ->end()
192 192
                             ->scalarNode('sink')
193 193
                                 ->validate()
194
-                                    ->ifTrue(function ($v) {
194
+                                    ->ifTrue(function($v) {
195 195
                                         return !is_string($v);
196 196
                                     })
197 197
                                     ->thenInvalid('sink can be: string')
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                             ->booleanNode('http_errors')->end()
201 201
                             ->variableNode('expect')
202 202
                                 ->validate()
203
-                                    ->ifTrue(function ($v) {
203
+                                    ->ifTrue(function($v) {
204 204
                                         return !is_bool($v) && !is_int($v);
205 205
                                     })
206 206
                                     ->thenInvalid('expect can be: bool or int')
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                             ->end()
209 209
                             ->variableNode('ssl_key')
210 210
                                 ->validate()
211
-                                    ->ifTrue(function ($v) {
211
+                                    ->ifTrue(function($v) {
212 212
                                         return !is_string($v) && (!is_array($v) || count($v) !== 2);
213 213
                                     })
214 214
                                     ->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
                             ->booleanNode('synchronous')->end()
219 219
                             ->scalarNode('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')
@@ -231,12 +231,12 @@  discard block
 block discarded – undo
231 231
                             ->end()
232 232
                             ->scalarNode('timeout')
233 233
                                 ->beforeNormalization()
234
-                                    ->always(function ($v) {
234
+                                    ->always(function($v) {
235 235
                                         return is_numeric($v) ? (float) $v : $v;
236 236
                                     })
237 237
                                 ->end()
238 238
                                 ->validate()
239
-                                    ->ifTrue(function ($v) {
239
+                                    ->ifTrue(function($v) {
240 240
                                         return !is_float($v) && !(is_string($v) && strpos($v, 'env_') === 0);
241 241
                                     })
242 242
                                     ->thenInvalid('timeout can be: float')
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
                             ->end()
245 245
                             ->variableNode('verify')
246 246
                                 ->validate()
247
-                                    ->ifTrue(function ($v) {
247
+                                    ->ifTrue(function($v) {
248 248
                                         return !is_bool($v) && !is_string($v);
249 249
                                     })
250 250
                                     ->thenInvalid('verify can be: bool or string')
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
                             ->end()
275 275
                             ->scalarNode('version')
276 276
                                 ->validate()
277
-                                    ->ifTrue(function ($v) {
277
+                                    ->ifTrue(function($v) {
278 278
                                         return !is_string($v) && !is_float($v);
279 279
                                     })
280 280
                                     ->thenInvalid('version can be: string or float')
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
                             ->scalarNode('handler')
284 284
                                 ->defaultValue(null)
285 285
                                 ->validate()
286
-                                    ->ifTrue(function ($v) {
286
+                                    ->ifTrue(function($v) {
287 287
                                         return $v !== null && (!is_string($v) || !class_exists($v));
288 288
                                     })
289 289
                                     ->thenInvalid('handler must be a valid FQCN for a loaded class')
Please login to merge, or discard this patch.