@@ -57,8 +57,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |