Completed
Pull Request — 2.1 (#1577)
by Antoine
02:52 queued 13s
created
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/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.
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   +7 added lines, -7 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
                     ->defaultValue('')
46 46
                     ->beforeNormalization()
47 47
                         ->ifNull()
48
-                        ->then(function ($v) { return ''; })
48
+                        ->then(function($v) { return ''; })
49 49
                     ->end()
50 50
                 ->end()
51 51
                 ->scalarNode('description')
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                     ->defaultValue('')
54 54
                     ->beforeNormalization()
55 55
                         ->ifNull()
56
-                        ->then(function ($v) { return ''; })
56
+                        ->then(function($v) { return ''; })
57 57
                     ->end()
58 58
                 ->end()
59 59
                 ->scalarNode('version')
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                     ->defaultValue('0.0.0')
63 63
                 ->end()
64 64
                 ->scalarNode('default_operation_path_resolver')
65
-                    ->beforeNormalization()->always(function ($v) {
65
+                    ->beforeNormalization()->always(function($v) {
66 66
                         @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);
67 67
 
68 68
                         return $v;
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
                     ->useAttributeAsKey('exception_class')
219 219
                     ->beforeNormalization()
220 220
                         ->ifArray()
221
-                        ->then(function (array $exceptionToStatus) {
221
+                        ->then(function(array $exceptionToStatus) {
222 222
                             foreach ($exceptionToStatus as &$httpStatusCode) {
223 223
                                 if (\is_int($httpStatusCode)) {
224 224
                                     continue;
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
                     ->prototype('integer')->end()
238 238
                     ->validate()
239 239
                         ->ifArray()
240
-                        ->then(function (array $exceptionToStatus) {
240
+                        ->then(function(array $exceptionToStatus) {
241 241
                             foreach ($exceptionToStatus as $httpStatusCode) {
242 242
                                 if ($httpStatusCode < 100 || $httpStatusCode >= 600) {
243 243
                                     throw new InvalidConfigurationException(sprintf('The HTTP status code "%s" is not valid.', $httpStatusCode));
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
                     ->useAttributeAsKey('format')
270 270
                     ->beforeNormalization()
271 271
                         ->ifArray()
272
-                        ->then(function ($v) {
272
+                        ->then(function($v) {
273 273
                             foreach ($v as $format => $value) {
274 274
                                 if (isset($value['mime_types'])) {
275 275
                                     continue;
Please login to merge, or discard this patch.