@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | use Illuminate\Support\Facades\File; |
4 | 4 | |
5 | -if (! function_exists('unlinkIfExists')) { |
|
5 | +if (!function_exists('unlinkIfExists')) { |
|
6 | 6 | function unlinkIfExists(string $filepath): void |
7 | 7 | { |
8 | 8 | if (file_exists($filepath)) { |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | } |
12 | 12 | } |
13 | 13 | |
14 | -if (! function_exists('backupDirectory')) { |
|
14 | +if (!function_exists('backupDirectory')) { |
|
15 | 15 | /** @deprecated v0.60.x - You should not run tests in a production environment. */ |
16 | 16 | function backupDirectory(string $directory): void |
17 | 17 | { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | } |
22 | 22 | } |
23 | 23 | |
24 | -if (! function_exists('restoreDirectory')) { |
|
24 | +if (!function_exists('restoreDirectory')) { |
|
25 | 25 | /** @deprecated v0.60.x - You should not run tests in a production environment. */ |
26 | 26 | function restoreDirectory(string $directory): void |
27 | 27 | { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | } |
33 | 33 | } |
34 | 34 | |
35 | -if (! function_exists('deleteDirectory')) { |
|
35 | +if (!function_exists('deleteDirectory')) { |
|
36 | 36 | function deleteDirectory(string $directory): void |
37 | 37 | { |
38 | 38 | if (file_exists($directory)) { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | } |
42 | 42 | } |
43 | 43 | |
44 | -if (! function_exists('unlinkUnlessDefault')) { |
|
44 | +if (!function_exists('unlinkUnlessDefault')) { |
|
45 | 45 | function unlinkUnlessDefault(string $filepath): void |
46 | 46 | { |
47 | 47 | $protected = [ |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | '.gitkeep', |
52 | 52 | ]; |
53 | 53 | |
54 | - if (! in_array(basename($filepath), $protected)) { |
|
54 | + if (!in_array(basename($filepath), $protected)) { |
|
55 | 55 | unlink($filepath); |
56 | 56 | } |
57 | 57 | } |