@@ -60,7 +60,7 @@ |
||
60 | 60 | )->willReturn([$tag1, $tag2, $tag3]); |
61 | 61 | |
62 | 62 | $this->input->method('getOption') |
63 | - ->willReturnCallback(function ($arg) { |
|
63 | + ->willReturnCallback(function($arg) { |
|
64 | 64 | if ($arg === 'visibilityFilter') { |
65 | 65 | return null; |
66 | 66 | } elseif ($arg === 'nameSearchPattern') { |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | ->willReturn($appDataFolder); |
60 | 60 | |
61 | 61 | $this->output->expects($this->exactly(3))->method('writeln') |
62 | - ->with(self::callback(function (string $message): bool { |
|
62 | + ->with(self::callback(function(string $message): bool { |
|
63 | 63 | static $i = 0; |
64 | 64 | return match (++$i) { |
65 | 65 | 1 => $message === 'Preview folder deleted', |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | ->willReturn($appDataFolder); |
162 | 162 | |
163 | 163 | $this->output->expects($this->exactly(2))->method('writeln') |
164 | - ->with(self::callback(function (string $message): bool { |
|
164 | + ->with(self::callback(function(string $message): bool { |
|
165 | 165 | static $i = 0; |
166 | 166 | return match (++$i) { |
167 | 167 | 1 => $message === 'Preview folder deleted', |
@@ -306,9 +306,9 @@ |
||
306 | 306 | $output = ''; |
307 | 307 | $this->consoleOutput->expects($this->any()) |
308 | 308 | ->method('writeln') |
309 | - ->willReturnCallback(function ($value) { |
|
309 | + ->willReturnCallback(function($value) { |
|
310 | 310 | global $output; |
311 | - $output .= $value . "\n"; |
|
311 | + $output .= $value."\n"; |
|
312 | 312 | return $output; |
313 | 313 | }); |
314 | 314 |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | ->method('hasParameterOption') |
134 | 134 | ->willReturnMap([ |
135 | 135 | ['--output', false, true], |
136 | - ['--default-value', false,$hasDefault], |
|
136 | + ['--default-value', false, $hasDefault], |
|
137 | 137 | ]); |
138 | 138 | |
139 | 139 | if ($expectedMessage !== null) { |
@@ -142,9 +142,9 @@ discard block |
||
142 | 142 | $output = ''; |
143 | 143 | $this->consoleOutput->expects($this->any()) |
144 | 144 | ->method('writeln') |
145 | - ->willReturnCallback(function ($value) { |
|
145 | + ->willReturnCallback(function($value) { |
|
146 | 146 | global $output; |
147 | - $output .= $value . "\n"; |
|
147 | + $output .= $value."\n"; |
|
148 | 148 | return $output; |
149 | 149 | }); |
150 | 150 | } |
@@ -91,7 +91,7 @@ |
||
91 | 91 | ]; |
92 | 92 | $this->consoleOutput->expects($this->exactly(3)) |
93 | 93 | ->method('writeln') |
94 | - ->willReturnCallback(function (string $message, int $level) use (&$calls): void { |
|
94 | + ->willReturnCallback(function(string $message, int $level) use (&$calls): void { |
|
95 | 95 | $call = array_shift($calls); |
96 | 96 | $this->assertStringContainsString($call[0], $message); |
97 | 97 | $this->assertSame($call[1], $level); |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | ->willReturnMap($options); |
194 | 194 | $this->consoleInput->expects($this->any()) |
195 | 195 | ->method('hasParameterOption') |
196 | - ->willReturnCallback(function (string|array $config, bool $default = false) use ($parameterOptions): bool { |
|
196 | + ->willReturnCallback(function(string | array $config, bool $default = false) use ($parameterOptions): bool { |
|
197 | 197 | foreach ($parameterOptions as $parameterOption) { |
198 | 198 | if ($config === $parameterOption[0] |
199 | 199 | // Check the default value if the maps has 3 entries |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | } else { |
415 | 415 | $this->consoleInput->expects($this->atLeastOnce()) |
416 | 416 | ->method('hasParameterOption') |
417 | - ->willReturnCallback(function (string|array $config, bool $default = false): bool { |
|
417 | + ->willReturnCallback(function(string | array $config, bool $default = false): bool { |
|
418 | 418 | if ($config === '--default-value' && $default === false) { |
419 | 419 | return true; |
420 | 420 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | |
54 | 54 | $this->commandTester->execute($input); |
55 | 55 | |
56 | - $this->assertMatchesRegularExpression('/' . $pattern . '/', $this->commandTester->getDisplay()); |
|
56 | + $this->assertMatchesRegularExpression('/'.$pattern.'/', $this->commandTester->getDisplay()); |
|
57 | 57 | $this->assertSame($statusCode, $this->commandTester->getStatusCode()); |
58 | 58 | } |
59 | 59 |
@@ -157,7 +157,7 @@ |
||
157 | 157 | ]; |
158 | 158 | $this->consoleOutput->expects($this->exactly(3)) |
159 | 159 | ->method('writeln') |
160 | - ->willReturnCallback(function (string $message) use (&$calls): void { |
|
160 | + ->willReturnCallback(function(string $message) use (&$calls): void { |
|
161 | 161 | $call = array_shift($calls); |
162 | 162 | $this->assertStringContainsString($call[0], $message); |
163 | 163 | }); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | $this->input = $this->createMock(InputInterface::class); |
42 | 42 | $this->input->method('getArgument') |
43 | - ->willReturnCallback(function ($arg) { |
|
43 | + ->willReturnCallback(function($arg) { |
|
44 | 44 | if ($arg === 'group') { |
45 | 45 | return 'myGroup'; |
46 | 46 | } elseif ($arg === 'user') { |