Completed
Pull Request — 2.1 (#1563)
by Grégoire
03:07
created
src/Bridge/Symfony/Bundle/DependencyInjection/Configuration.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection;
15 15
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                     ->defaultValue('0.0.0')
57 57
                 ->end()
58 58
                 ->scalarNode('default_operation_path_resolver')
59
-                    ->beforeNormalization()->always(function ($v) {
59
+                    ->beforeNormalization()->always(function($v) {
60 60
                         @trigger_error('The use of the `default_operation_path_resolver` has been deprecated in 2.1 and will be removed in 3.0. Use `path_segment_name_generator` instead.', E_USER_DEPRECATED);
61 61
 
62 62
                         return $v;
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                     ->useAttributeAsKey('exception_class')
213 213
                     ->beforeNormalization()
214 214
                         ->ifArray()
215
-                        ->then(function (array $exceptionToStatus) {
215
+                        ->then(function(array $exceptionToStatus) {
216 216
                             foreach ($exceptionToStatus as &$httpStatusCode) {
217 217
                                 if (is_int($httpStatusCode)) {
218 218
                                     continue;
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
                     ->prototype('integer')->end()
232 232
                     ->validate()
233 233
                         ->ifArray()
234
-                        ->then(function (array $exceptionToStatus) {
234
+                        ->then(function(array $exceptionToStatus) {
235 235
                             foreach ($exceptionToStatus as $httpStatusCode) {
236 236
                                 if ($httpStatusCode < 100 || $httpStatusCode >= 600) {
237 237
                                     throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode));
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
                     ->useAttributeAsKey('format')
264 264
                     ->beforeNormalization()
265 265
                         ->ifArray()
266
-                        ->then(function ($v) {
266
+                        ->then(function($v) {
267 267
                             foreach ($v as $format => $value) {
268 268
                                 if (isset($value['mime_types'])) {
269 269
                                     continue;
Please login to merge, or discard this patch.