@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | echo "case 0"; |
| 72 | 72 | default: |
| 73 | 73 | } |
| 74 | -EOF |
|
| 74 | +eof |
|
| 75 | 75 | ]; |
| 76 | 76 | |
| 77 | 77 | // #2 switch with two cases, second with break |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | break; |
| 99 | 99 | default: |
| 100 | 100 | } |
| 101 | -EOF |
|
| 101 | +eof |
|
| 102 | 102 | ]; |
| 103 | 103 | |
| 104 | 104 | // #3 switch with two cases (second with break) and default |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | default: |
| 127 | 127 | echo "default case"; |
| 128 | 128 | } |
| 129 | -EOF |
|
| 129 | +eof |
|
| 130 | 130 | ]; |
| 131 | 131 | |
| 132 | 132 | // #4 switch with two cases (first without body, second with break) and default |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | default: |
| 154 | 154 | echo "default case"; |
| 155 | 155 | } |
| 156 | -EOF |
|
| 156 | +eof |
|
| 157 | 157 | ]; |
| 158 | 158 | |
| 159 | 159 | return $tests; |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $kernel = $this->getMockBuilder(ZikulaHttpKernelInterface::class)->getMock(); |
| 83 | 83 | $kernel |
| 84 | 84 | ->method('getBundles') |
| 85 | - ->willReturnCallback(function () { |
|
| 85 | + ->willReturnCallback(function() { |
|
| 86 | 86 | $bundle = $this->getMockForAbstractClass( |
| 87 | 87 | AbstractBundle::class, [], |
| 88 | 88 | '', |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $this->userRepo |
| 77 | 77 | ->method('findByUids') |
| 78 | 78 | ->with($this->anything()) |
| 79 | - ->willReturnCallback(function (array $uids) { |
|
| 79 | + ->willReturnCallback(function(array $uids) { |
|
| 80 | 80 | $groups = new ArrayCollection(); |
| 81 | 81 | // getGroups returns [gid => $group, gid => $group, ...] |
| 82 | 82 | if (in_array(self::RANDOM_USER_ID, $uids, true)) { |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | $this->currentUserApi |
| 145 | 145 | ->method('get') |
| 146 | 146 | ->with($this->equalTo('uid')) |
| 147 | - ->willReturnCallback(static function () use ($userId) { |
|
| 147 | + ->willReturnCallback(static function() use ($userId) { |
|
| 148 | 148 | return $userId ?? Constant::USER_ID_ANONYMOUS; |
| 149 | 149 | }); |
| 150 | 150 | $api = new PermissionApi($this->permRepo, $this->userRepo, $this->currentUserApi, $this->translator); |