Completed
Push — master ( dc9f0a...a99ce7 )
by Joao
02:15
created
src/Commands/SetupCommand.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,8 +57,9 @@  discard block
 block discarded – undo
57 57
             return (!(stripos($var, 'jlourenco.') === false) && $var != 'jlourenco.php');
58 58
         });
59 59
 
60
-        if ($fileExists)
61
-            unlink($mainFile);
60
+        if ($fileExists) {
61
+                    unlink($mainFile);
62
+        }
62 63
 
63 64
         touch($mainFile);
64 65
 
@@ -71,8 +72,9 @@  discard block
 block discarded – undo
71 72
 
72 73
             while ($line = fgets($in))
73 74
             {
74
-                if ((stripos($line, '<?php') === false) && (stripos($line, '];') === false) && (stripos($line, 'return [') === false))
75
-                    $content .= $line;
75
+                if ((stripos($line, '<?php') === false) && (stripos($line, '];') === false) && (stripos($line, 'return [') === false)) {
76
+                                    $content .= $line;
77
+                }
76 78
             }
77 79
 
78 80
             fclose($in);
@@ -84,8 +86,9 @@  discard block
 block discarded – undo
84 86
 
85 87
         $bytesWritten = File::append($mainFile, $content);
86 88
 
87
-        if ($bytesWritten === false)
88
-            $this->info('Couldn\'t write to config file.');
89
+        if ($bytesWritten === false) {
90
+                    $this->info('Couldn\'t write to config file.');
91
+        }
89 92
 
90 93
         $this->info('Config files compiled');
91 94
     }
Please login to merge, or discard this patch.