Passed
Push — devel-3.0 ( 31a38b...724b66 )
by Rubén
03:28
created
lib/SP/Services/Account/AccountAclService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         $userToUserGroupService = $this->dic->get(UserToUserGroupService::class);
269 269
 
270 270
         // Groups in whinch the user is listed in
271
-        $userGroups = array_map(function ($value) {
271
+        $userGroups = array_map(function($value) {
272 272
             return (int)$value->userGroupId;
273 273
         }, $userToUserGroupService->getGroupsForUser($this->userData->getId()));
274 274
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
      */
302 302
     private function getUserInSecondaryUsers($userId)
303 303
     {
304
-        return array_values(array_filter($this->accountAclDto->getUsersId(), function ($value) use ($userId) {
304
+        return array_values(array_filter($this->accountAclDto->getUsersId(), function($value) use ($userId) {
305 305
             return (int)$value->id === $userId;
306 306
         }));
307 307
     }
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 
335 335
         // Comprobar si el grupo del usuario está vinculado desde los grupos secundarios de la cuenta
336 336
         return array_filter($this->accountAclDto->getUserGroupsId(),
337
-            function ($value) use ($userGroupId, $isAccountFullGroupAccess, $userGroups) {
337
+            function($value) use ($userGroupId, $isAccountFullGroupAccess, $userGroups) {
338 338
                 return (int)$value->id === $userGroupId
339 339
                     // o... permitir los grupos que no sean el principal del usuario?
340 340
                     || ($isAccountFullGroupAccess
Please login to merge, or discard this patch.