@@ -67,7 +67,7 @@ |
||
| 67 | 67 | $this->currentUserApi |
| 68 | 68 | ->method('get') |
| 69 | 69 | ->with($this->equalTo('uid')) |
| 70 | - ->willReturnCallback(static function () use ($userId) { |
|
| 70 | + ->willReturnCallback(static function() use ($userId) { |
|
| 71 | 71 | return $userId ?? Constant::USER_ID_ANONYMOUS; |
| 72 | 72 | }); |
| 73 | 73 | $api = new PermissionApi($this->permRepo, $this->userRepo, $this->currentUserApi, $this->translator); |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | $this->userRepo |
| 75 | 75 | ->method('findByUids') |
| 76 | 76 | ->with($this->anything()) |
| 77 | - ->willReturnCallback(function (array $uids) { |
|
| 77 | + ->willReturnCallback(function(array $uids) { |
|
| 78 | 78 | $groups = new ArrayCollection(); |
| 79 | 79 | // getGroups returns [gid => $group, gid => $group, ...] |
| 80 | 80 | if (in_array(self::RANDOM_USER_ID, $uids, true)) { |