Passed
Push — master ( 7dcd3c...6c7933 )
by Caen
03:11 queued 12s
created
packages/testing/src/helpers.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
11 11
     }
12 12
 }
13 13
 
14
-if (! function_exists('backupDirectory')) {
14
+if (!function_exists('backupDirectory')) {
15 15
     function backupDirectory(string $directory): void
16 16
     {
17 17
         if (file_exists($directory)) {
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     }
21 21
 }
22 22
 
23
-if (! function_exists('restoreDirectory')) {
23
+if (!function_exists('restoreDirectory')) {
24 24
     function restoreDirectory(string $directory): void
25 25
     {
26 26
         if (file_exists($directory.'-bak')) {
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     }
31 31
 }
32 32
 
33
-if (! function_exists('deleteDirectory')) {
33
+if (!function_exists('deleteDirectory')) {
34 34
     function deleteDirectory(string $directory): void
35 35
     {
36 36
         if (file_exists($directory)) {
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     }
40 40
 }
41 41
 
42
-if (! function_exists('unlinkUnlessDefault')) {
42
+if (!function_exists('unlinkUnlessDefault')) {
43 43
     function unlinkUnlessDefault(string $filepath): void
44 44
     {
45 45
         $protected = [
@@ -49,13 +49,13 @@  discard block
 block discarded – undo
49 49
             '.gitkeep',
50 50
         ];
51 51
 
52
-        if (! in_array(basename($filepath), $protected)) {
52
+        if (!in_array(basename($filepath), $protected)) {
53 53
             unlink($filepath);
54 54
         }
55 55
     }
56 56
 }
57 57
 
58
-if (! function_exists('strip_newlines')) {
58
+if (!function_exists('strip_newlines')) {
59 59
     function strip_newlines(string $string, bool $keepUnixEndings = false): string
60 60
     {
61 61
         if ($keepUnixEndings) {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     }
67 67
 }
68 68
 
69
-if (! function_exists('strip_indentation')) {
69
+if (!function_exists('strip_indentation')) {
70 70
     function strip_indentation(string $string, bool $indentUsingSpaces = true, int $indentationLength = 4): string
71 71
     {
72 72
         $indentation = $indentUsingSpaces ? str_repeat(' ', $indentationLength) : "\t";
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     }
76 76
 }
77 77
 
78
-if (! function_exists('strip_newlines_and_indentation')) {
78
+if (!function_exists('strip_newlines_and_indentation')) {
79 79
     function strip_newlines_and_indentation(string $string, bool $indentUsingSpaces = true, int $indentationLength = 4): string
80 80
     {
81 81
         return strip_newlines(strip_indentation($string, $indentUsingSpaces, $indentationLength));
Please login to merge, or discard this patch.