You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -138,8 +136,8 @@ protected function notifyIfOldCliVersion()
138
136
139
137
$this->output->write(PHP_EOL);
140
138
$this->output->write("<comment>This is an old version of the Statamic CLI Tool, please upgrade to {$this->shouldUpdateCliToVersion}!</comment>".PHP_EOL);
141
-
$this->output->write("<comment>If you have a global composer installation, you may upgrade by running the following command:</comment>".PHP_EOL);
142
-
$this->output->write("<comment>composer global update statamic/cli</comment>".PHP_EOL);
139
+
$this->output->write('<comment>If you have a global composer installation, you may upgrade by running the following command:</comment>'.PHP_EOL);
140
+
$this->output->write('<comment>composer global update statamic/cli</comment>'.PHP_EOL);
143
141
144
142
return$this;
145
143
}
@@ -180,6 +178,7 @@ protected function processArguments()
180
178
* Validate arguments and options.
181
179
*
182
180
* @return $this
181
+
*
183
182
* @throws RuntimeException
184
183
*/
185
184
protectedfunctionvalidateArguments()
@@ -253,7 +252,7 @@ protected function askForRepo()
253
252
'Starter Kit',
254
253
];
255
254
256
-
$question = newChoiceQuestion("Would you like to start with a blank site or starter kit? [<comment>Blank Site</comment>]", $options, 0);
255
+
$question = newChoiceQuestion('Would you like to start with a blank site or starter kit? [<comment>Blank Site</comment>]', $options, 0);
@@ -599,7 +600,7 @@ protected function validatePassword($password)
599
600
returntrue;
600
601
}
601
602
602
-
$this->output->write("<error>The input must be at least 8 characters.</error>".PHP_EOL);
603
+
$this->output->write('<error>The input must be at least 8 characters.</error>'.PHP_EOL);
603
604
604
605
returnfalse;
605
606
}
@@ -613,7 +614,7 @@ protected function showSuccessMessage()
613
614
{
614
615
$this->output->writeln(PHP_EOL."<info>[✔] Statamic has been successfully installed into the <comment>{$this->relativePath}</comment> directory.</info>");
615
616
616
-
$this->output->writeln("Build something rad!");
617
+
$this->output->writeln('Build something rad!');
617
618
618
619
return$this;
619
620
}
@@ -639,9 +640,13 @@ protected function askToSpreadJoy()
639
640
return$this;
640
641
}
641
642
642
-
if (PHP_OS_FAMILY == 'Darwin') exec('open https://github.com/statamic/cms');
643
-
if (PHP_OS_FAMILY == 'Windows') exec('start https://github.com/statamic/cms');
644
-
if (PHP_OS_FAMILY == 'Linux') exec('xdg-open https://github.com/statamic/cms');
643
+
if (PHP_OS_FAMILY == 'Darwin') {
644
+
exec('open https://github.com/statamic/cms');
645
+
} elseif (PHP_OS_FAMILY == 'Windows') {
646
+
exec('start https://github.com/statamic/cms');
647
+
} elseif (PHP_OS_FAMILY == 'Linux') {
648
+
exec('xdg-open https://github.com/statamic/cms');
649
+
}
645
650
646
651
return$this;
647
652
}
@@ -746,9 +751,9 @@ protected function updateEnvVars()
0 commit comments