@@ -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\Metadata\Property\Factory; |
| 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 | * This file is part of the API Platform project. |
| 15 | 15 | * |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | { |
| 38 | 38 | parent::registerFunctions(); |
| 39 | 39 | |
| 40 | - $this->register('is_granted', function ($attributes, $object = 'null') { |
|
| 40 | + $this->register('is_granted', function($attributes, $object = 'null') { |
|
| 41 | 41 | return sprintf('$auth_checker->isGranted(%s, %s)', $attributes, $object); |
| 42 | - }, function (array $variables, $attributes, $object = null) { |
|
| 42 | + }, function(array $variables, $attributes, $object = null) { |
|
| 43 | 43 | return $variables['auth_checker']->isGranted($attributes, $object); |
| 44 | 44 | }); |
| 45 | 45 | } |
@@ -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 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | 'user' => $token->getUser(), |
| 107 | 107 | 'object' => $request->attributes->get('data'), |
| 108 | 108 | 'request' => $request, |
| 109 | - 'roles' => array_map(function ($role) {return $role->getRole(); }, $roles), |
|
| 109 | + 'roles' => array_map(function($role) {return $role->getRole(); }, $roles), |
|
| 110 | 110 | 'trust_resolver' => $this->authenticationTrustResolver, |
| 111 | 111 | // needed for the is_granted expression function |
| 112 | 112 | 'auth_checker' => $this->authorizationChecker, |