@@ -236,7 +236,7 @@ |
||
| 236 | 236 | * |
| 237 | 237 | * @return string |
| 238 | 238 | */ |
| 239 | - $iterator = function (UserGroup $userGroup) { |
|
| 239 | + $iterator = function(UserGroup $userGroup) { |
|
| 240 | 240 | return $userGroup->getRole()->getId(); |
| 241 | 241 | }; |
| 242 | 242 | |
@@ -395,7 +395,7 @@ |
||
| 395 | 395 | * |
| 396 | 396 | * @return string |
| 397 | 397 | */ |
| 398 | - $iterator = function (UserGroup $userGroup) { |
|
| 398 | + $iterator = function(UserGroup $userGroup) { |
|
| 399 | 399 | return $userGroup->getRole()->getId(); |
| 400 | 400 | }; |
| 401 | 401 | |
@@ -1030,7 +1030,7 @@ |
||
| 1030 | 1030 | */ |
| 1031 | 1031 | private function cleanContent(string $content): string |
| 1032 | 1032 | { |
| 1033 | - $iterator = function ($search) use (&$content) { |
|
| 1033 | + $iterator = function($search) use (&$content) { |
|
| 1034 | 1034 | $content = \preg_replace('/(' . $search . '":)\s*"(.*)"/', '$1"*** REPLACED ***"', $content); |
| 1035 | 1035 | }; |
| 1036 | 1036 | |
@@ -121,11 +121,11 @@ |
||
| 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 |
@@ -50,7 +50,7 @@ |
||
| 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 | |
@@ -103,7 +103,7 @@ |
||
| 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 | |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | 'has' . \ucfirst($property), |
| 66 | 66 | ]; |
| 67 | 67 | |
| 68 | - $filter = function (string $method) use ($dto): bool { |
|
| 68 | + $filter = function(string $method) use ($dto): bool { |
|
| 69 | 69 | return \method_exists($dto, $method); |
| 70 | 70 | }; |
| 71 | 71 | |
@@ -145,7 +145,7 @@ |
||
| 145 | 145 | * |
| 146 | 146 | * @return string |
| 147 | 147 | */ |
| 148 | - $iterator = function (UserGroupEntity $userGroup) { |
|
| 148 | + $iterator = function(UserGroupEntity $userGroup) { |
|
| 149 | 149 | return $userGroup->getId(); |
| 150 | 150 | }; |
| 151 | 151 | |
@@ -252,7 +252,7 @@ |
||
| 252 | 252 | * |
| 253 | 253 | * @return string |
| 254 | 254 | */ |
| 255 | - $iterator = function (UserGroupEntity $group) { |
|
| 255 | + $iterator = function(UserGroupEntity $group) { |
|
| 256 | 256 | return $group->getId(); |
| 257 | 257 | }; |
| 258 | 258 | |