@@ -9,7 +9,7 @@ |
||
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 |
@@ -9,7 +9,7 @@ |
||
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 |
@@ -9,7 +9,7 @@ |
||
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 |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 | } |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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, |
@@ -9,7 +9,7 @@ |
||
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 |
@@ -9,7 +9,7 @@ |
||
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; |
15 | 15 |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 | } |