Completed
Pull Request — master (#1658)
by Niels
03:52
created
src/Security/ExpressionLanguage.php 1 patch
Spacing   +3 added lines, -3 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\Security;
15 15
 
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
     {
30 30
         parent::registerFunctions();
31 31
 
32
-        $this->register('is_granted', function ($attributes, $object = 'null') {
32
+        $this->register('is_granted', function($attributes, $object = 'null') {
33 33
             return sprintf('$auth_checker->isGranted(%s, %s)', $attributes, $object);
34
-        }, function (array $variables, $attributes, $object = null) {
34
+        }, function(array $variables, $attributes, $object = null) {
35 35
             return $variables['auth_checker']->isGranted($attributes, $object);
36 36
         });
37 37
     }
Please login to merge, or discard this patch.
src/Bridge/Symfony/Bundle/DependencyInjection/Configuration.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
                 ->arrayNode('swagger')
90 90
                     ->addDefaultsIfNotSet()
91 91
                     ->children()
92
-                             ->arrayNode('api_keys')
93
-                                 ->prototype('array')
92
+                                ->arrayNode('api_keys')
93
+                                    ->prototype('array')
94 94
                                     ->children()
95 95
                                     ->scalarNode('name')
96 96
                                         ->info('The name of the header or query parameter containing the api key.')
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                                         ->values(['query', 'header'])
101 101
                                     ->end()
102 102
                                 ->end()
103
-                             ->end()
103
+                                ->end()
104 104
                         ->end()
105 105
                     ->end()
106 106
                 ->end()
Please login to merge, or discard this 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
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                     ->defaultValue('0.0.0')
59 59
                 ->end()
60 60
                 ->scalarNode('default_operation_path_resolver')
61
-                    ->beforeNormalization()->always(function ($v) {
61
+                    ->beforeNormalization()->always(function($v) {
62 62
                         @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);
63 63
 
64 64
                         return $v;
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 ->end()
88 88
                 ->booleanNode('enable_fos_user')->defaultValue(class_exists(FOSUserBundle::class))->info('Enable the FOSUserBundle integration.')->end()
89 89
                 ->booleanNode('enable_nelmio_api_doc')
90
-                    ->beforeNormalization()->always(function ($v) {
90
+                    ->beforeNormalization()->always(function($v) {
91 91
                         if ($v) {
92 92
                             @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);
93 93
                         }
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
                     ->useAttributeAsKey('exception_class')
250 250
                     ->beforeNormalization()
251 251
                         ->ifArray()
252
-                        ->then(function (array $exceptionToStatus) {
252
+                        ->then(function(array $exceptionToStatus) {
253 253
                             foreach ($exceptionToStatus as &$httpStatusCode) {
254 254
                                 if (\is_int($httpStatusCode)) {
255 255
                                     continue;
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
                     ->prototype('integer')->end()
269 269
                     ->validate()
270 270
                         ->ifArray()
271
-                        ->then(function (array $exceptionToStatus) {
271
+                        ->then(function(array $exceptionToStatus) {
272 272
                             foreach ($exceptionToStatus as $httpStatusCode) {
273 273
                                 if ($httpStatusCode < 100 || $httpStatusCode >= 600) {
274 274
                                     throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode));
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
                     ->useAttributeAsKey('format')
301 301
                     ->beforeNormalization()
302 302
                         ->ifArray()
303
-                        ->then(function ($v) {
303
+                        ->then(function($v) {
304 304
                             foreach ($v as $format => $value) {
305 305
                                 if (isset($value['mime_types'])) {
306 306
                                     continue;
Please login to merge, or discard this patch.
src/Serializer/AbstractItemNormalizer.php 1 patch
Spacing   +2 added lines, -2 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\Serializer;
15 15
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $this->itemDataProvider = $itemDataProvider;
60 60
         $this->allowPlainIdentifiers = $allowPlainIdentifiers;
61 61
 
62
-        $this->setCircularReferenceHandler(function ($object) {
62
+        $this->setCircularReferenceHandler(function($object) {
63 63
             return $this->iriConverter->getIriFromItem($object);
64 64
         });
65 65
     }
Please login to merge, or discard this patch.
src/Bridge/Doctrine/Orm/Util/QueryBuilderHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\Doctrine\Orm\Util;
15 15
 
Please login to merge, or discard this patch.
src/JsonApi/EventListener/TransformPaginationParametersListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\JsonApi\EventListener;
15 15
 
Please login to merge, or discard this patch.
src/JsonApi/EventListener/TransformFieldsetsParametersListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\JsonApi\EventListener;
15 15
 
Please login to merge, or discard this patch.
src/Serializer/AbstractConstraintViolationListNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\Serializer;
15 15
 
Please login to merge, or discard this patch.
src/DataProvider/RestrictedDataProviderInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\DataProvider;
15 15
 
Please login to merge, or discard this patch.
src/Serializer/AbstractCollectionNormalizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\Serializer;
15 15
 
Please login to merge, or discard this patch.