@@ -32,7 +32,7 @@ |
||
| 32 | 32 | { |
| 33 | 33 | public function setUp(): void |
| 34 | 34 | { |
| 35 | - if (! class_exists('VersionControl_Git')) { |
|
| 35 | + if (!class_exists('VersionControl_Git')) { |
|
| 36 | 36 | $this->markTestSkipped('The Git tasks depend on the pear/versioncontrol_git package being installed.'); |
| 37 | 37 | } |
| 38 | 38 | // set temp directory used by test cases |
@@ -89,8 +89,8 @@ |
||
| 89 | 89 | |
| 90 | 90 | $task->expects($this->exactly(count($callParams))) |
| 91 | 91 | ->method('callApi') |
| 92 | - ->willReturnCallback(function (string $action, array|null $args) use ($callParams, $returnResults): array { |
|
| 93 | - $index = $this->array_find_key($callParams, function (array $value) use ($action, $args): bool { |
|
| 92 | + ->willReturnCallback(function(string $action, array | null $args) use ($callParams, $returnResults): array { |
|
| 93 | + $index = $this->array_find_key($callParams, function(array $value) use ($action, $args): bool { |
|
| 94 | 94 | return $value[0] === $action && ($value[1] ?? null) === $args; |
| 95 | 95 | }); |
| 96 | 96 | if (isset($callParams[$index])) { |