Completed
Push — 2.1 ( bd9aea...9440d7 )
by Kévin
17s
created
src/Operation/Factory/CachedSubresourceOperationFactory.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\Operation\Factory;
15 15
 
Please login to merge, or discard this patch.
src/Operation/Factory/SubresourceOperationFactoryInterface.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\Operation\Factory;
15 15
 
Please login to merge, or discard this patch.
src/Operation/DashPathSegmentNameGenerator.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\Operation;
15 15
 
Please login to merge, or discard this patch.
src/Operation/PathSegmentNameGeneratorInterface.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\Operation;
15 15
 
Please login to merge, or discard this patch.
src/Operation/UnderscorePathSegmentNameGenerator.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\Operation;
15 15
 
Please login to merge, or discard this patch.
src/Api/CachedIdentifiersExtractor.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\Api;
15 15
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function getIdentifiersFromItem($item): array
49 49
     {
50
-        $keys = $this->getKeys($item, function ($item) use (&$identifiers) {
50
+        $keys = $this->getKeys($item, function($item) use (&$identifiers) {
51 51
             return $identifiers = $this->decorated->getIdentifiersFromItem($item);
52 52
         });
53 53
 
Please login to merge, or discard this patch.
src/EventListener/ReadListener.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\EventListener;
15 15
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         }
134 134
 
135 135
         $identifiers = [];
136
-        foreach ($attributes['subresource_context']['identifiers'] as $key => list($id, , $hasIdentifier)) {
136
+        foreach ($attributes['subresource_context']['identifiers'] as $key => list($id,, $hasIdentifier)) {
137 137
             if (true === $hasIdentifier) {
138 138
                 $identifiers[$id] = $request->attributes->get($id);
139 139
             }
Please login to merge, or discard this patch.
src/Bridge/Symfony/Bundle/DependencyInjection/Configuration.php 2 patches
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
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                 ->scalarNode('description')->defaultValue('')->info('The description of the API.')->end()
45 45
                 ->scalarNode('version')->defaultValue('0.0.0')->info('The version of the API.')->end()
46 46
                 ->scalarNode('default_operation_path_resolver')
47
-                    ->beforeNormalization()->always(function ($v) {
47
+                    ->beforeNormalization()->always(function($v) {
48 48
                         @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);
49 49
 
50 50
                         return $v;
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                     ->useAttributeAsKey('exception_class')
182 182
                     ->beforeNormalization()
183 183
                         ->ifArray()
184
-                        ->then(function (array $exceptionToStatus) {
184
+                        ->then(function(array $exceptionToStatus) {
185 185
                             foreach ($exceptionToStatus as &$httpStatusCode) {
186 186
                                 if (is_int($httpStatusCode)) {
187 187
                                     continue;
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                     ->prototype('integer')->end()
201 201
                     ->validate()
202 202
                         ->ifArray()
203
-                        ->then(function (array $exceptionToStatus) {
203
+                        ->then(function(array $exceptionToStatus) {
204 204
                             foreach ($exceptionToStatus as $httpStatusCode) {
205 205
                                 if ($httpStatusCode < 100 || $httpStatusCode >= 600) {
206 206
                                     throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode));
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
                     ->useAttributeAsKey('format')
233 233
                     ->beforeNormalization()
234 234
                         ->ifArray()
235
-                        ->then(function ($v) {
235
+                        ->then(function($v) {
236 236
                             foreach ($v as $format => $value) {
237 237
                                 if (isset($value['mime_types'])) {
238 238
                                     continue;
Please login to merge, or discard this patch.
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.
src/Security/EventListener/DenyAccessListener.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\Security\EventListener;
15 15
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             'user' => $token->getUser(),
108 108
             'object' => $request->attributes->get('data'),
109 109
             'request' => $request,
110
-            'roles' => array_map(function (Role $role) {
110
+            'roles' => array_map(function(Role $role) {
111 111
                 return $role->getRole();
112 112
             }, $roles),
113 113
             'trust_resolver' => $this->authenticationTrustResolver,
Please login to merge, or discard this patch.