@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Controller/RoleController.php |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Controller/DefaultController.php |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Controller/UserGroupController.php |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Security/RolesInterface.php |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Security/ApiKeyUser.php |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Security/ApiKeyUser.php |
| 5 | 5 | * |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | $roles = [RolesService::ROLE_API]; |
| 51 | 51 | |
| 52 | 52 | // Iterate API key user groups and attach those roles for API user |
| 53 | - $this->apiKey->getUserGroups()->map(function (UserGroup $userGroup) use (&$roles) { |
|
| 53 | + $this->apiKey->getUserGroups()->map(function(UserGroup $userGroup) use (&$roles) { |
|
| 54 | 54 | $roles[] = $userGroup->getRole()->getId(); |
| 55 | 55 | }); |
| 56 | 56 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Security/UserProvider.php |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Security/Roles.php |
| 5 | 5 | * |
@@ -121,11 +121,11 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | return \array_unique( |
| 123 | 123 | \array_map( |
| 124 | - function (Role $role) { |
|
| 124 | + function(Role $role) { |
|
| 125 | 125 | return $role->getRole(); |
| 126 | 126 | }, |
| 127 | 127 | $hierarchy->getReachableRoles(\array_map( |
| 128 | - function (string $role) { |
|
| 128 | + function(string $role) { |
|
| 129 | 129 | return new Role($role); |
| 130 | 130 | }, |
| 131 | 131 | $roles |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * /src/Security/ApiKeyAuthenticator.php |
| 5 | 5 | * |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * |
| 104 | 104 | * @return bool |
| 105 | 105 | */ |
| 106 | - $filter = function (UserProviderInterface $userProvider): bool { |
|
| 106 | + $filter = function(UserProviderInterface $userProvider): bool { |
|
| 107 | 107 | return $userProvider instanceof ApiKeyUserProvider; |
| 108 | 108 | }; |
| 109 | 109 | |