Completed
Pull Request — master (#1368)
by
unknown
02:49
created
src/Bridge/Symfony/Bundle/DependencyInjection/Configuration.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 ->scalarNode('description')->defaultValue('')->info('The description of the API.')->end()
46 46
                 ->scalarNode('version')->defaultValue('0.0.0')->info('The version of the API.')->end()
47 47
                 ->scalarNode('default_operation_path_resolver')
48
-                    ->beforeNormalization()->always(function ($v) {
48
+                    ->beforeNormalization()->always(function($v) {
49 49
                         @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);
50 50
 
51 51
                         return $v;
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
                 ->end()
68 68
                 ->booleanNode('enable_fos_user')->defaultValue(class_exists(FOSUserBundle::class))->info('Enable the FOSUserBundle integration.')->end()
69 69
                 ->booleanNode('enable_nelmio_api_doc')
70
-                    ->beforeNormalization()->always(function ($v) {
70
+                    ->beforeNormalization()->always(function($v) {
71 71
                         if ($v) {
72 72
                             @trigger_error('Enabling the NelmioApiDocBundle integration has been deprecated in 2.2 and will be removed in 3.0. NelmioApiDocBundle 3 has native support for API Platform.', E_USER_DEPRECATED);
73 73
                         }
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
                     ->useAttributeAsKey('exception_class')
212 212
                     ->beforeNormalization()
213 213
                         ->ifArray()
214
-                        ->then(function (array $exceptionToStatus) {
214
+                        ->then(function(array $exceptionToStatus) {
215 215
                             foreach ($exceptionToStatus as &$httpStatusCode) {
216 216
                                 if (is_int($httpStatusCode)) {
217 217
                                     continue;
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
                     ->prototype('integer')->end()
231 231
                     ->validate()
232 232
                         ->ifArray()
233
-                        ->then(function (array $exceptionToStatus) {
233
+                        ->then(function(array $exceptionToStatus) {
234 234
                             foreach ($exceptionToStatus as $httpStatusCode) {
235 235
                                 if ($httpStatusCode < 100 || $httpStatusCode >= 600) {
236 236
                                     throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode));
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
                     ->useAttributeAsKey('format')
263 263
                     ->beforeNormalization()
264 264
                         ->ifArray()
265
-                        ->then(function ($v) {
265
+                        ->then(function($v) {
266 266
                             foreach ($v as $format => $value) {
267 267
                                 if (isset($value['mime_types'])) {
268 268
                                     continue;
Please login to merge, or discard this patch.