@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | ."I just created for you. This will make it WAY easier to update PHP Draft in the future!</info>\n"); |
| 25 | 25 | $answer = askConfirmation("Should I back up your settings for you?", false); |
| 26 | 26 | |
| 27 | - if($answer == true) { |
|
| 27 | + if ($answer == true) { |
|
| 28 | 28 | writeln("\n\n<info>Awesome! Wherever you tell me to back your settings up to, you should make sure " |
| 29 | 29 | ."that only your user has permissions to view the file (if the server you're installing on " |
| 30 | 30 | ."is more important, you should probably ensure your disk is encrypted, too).</info>\n"); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | $answer = askConfirmation($message, false); |
| 50 | 50 | |
| 51 | - if($answer == false) { |
|
| 51 | + if ($answer == false) { |
|
| 52 | 52 | throw new \Exception("Quitting setup at the user's request. BYE FELICIA."); |
| 53 | 53 | } |
| 54 | 54 | })->setPrivate(); |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | desc('Copy files from the deploy directory to their place.'); |
| 133 | 133 | task('phpdraft:copyfiles', function() { |
| 134 | - if(file_exists('js') !== true) { |
|
| 134 | + if (file_exists('js') !== true) { |
|
| 135 | 135 | runLocally('mkdir js'); |
| 136 | 136 | } |
| 137 | 137 | |
@@ -150,8 +150,8 @@ discard block |
||
| 150 | 150 | 'deploy.php' |
| 151 | 151 | ]; |
| 152 | 152 | |
| 153 | - foreach(get('phpdraft_setup_variables') as $property => $value) { |
|
| 154 | - foreach($files_to_replace_in as $file) { |
|
| 153 | + foreach (get('phpdraft_setup_variables') as $property => $value) { |
|
| 154 | + foreach ($files_to_replace_in as $file) { |
|
| 155 | 155 | //TODO: Is there something more platform agnostic we can use? |
| 156 | 156 | runLocally("sed -i '' 's|{phpdraft.$property}|$value|g' $file $file"); |
| 157 | 157 | } |