Skip to content

Commit 487d14e

Browse files
pascalbaljetgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 56d8f7f commit 487d14e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

TestStubs.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function retry($times, callable $callback, $sleepMilliseconds = 0, $when = null)
2424
try {
2525
return $callback($attempts);
2626
} catch (Exception $e) {
27-
if ($times < 1 || ($when && ! $when($e))) {
27+
if ($times < 1 || ($when && !$when($e))) {
2828
throw $e;
2929
}
3030

@@ -43,7 +43,7 @@ function get()
4343
$contents = file_get_contents('http://127.0.0.1:8000/');
4444

4545
if (!$contents) {
46-
throw new Exception("No contents");
46+
throw new Exception('No contents');
4747
}
4848

4949
return $contents;
@@ -61,12 +61,12 @@ function get()
6161
foreach ($needles as $needle) {
6262
if (!str_contains($home, $needle)) {
6363
$missing[] = $needle;
64-
echo "Not found: " . $needle . PHP_EOL;
64+
echo 'Not found: ' . $needle . PHP_EOL;
6565
}
6666
}
6767

6868
if (empty($missing)) {
69-
echo "OK";
69+
echo 'OK';
7070
exit(0);
7171
}
7272

0 commit comments

Comments
 (0)