mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 02:37:22 +01:00
fix: spacing in init
This commit is contained in:
@ -46,14 +46,20 @@ final class Thanks
|
|||||||
$bootstrapper = new BootView($this->output);
|
$bootstrapper = new BootView($this->output);
|
||||||
$bootstrapper->boot();
|
$bootstrapper->boot();
|
||||||
|
|
||||||
$wantsToSupport = getenv('PEST_NO_SUPPORT') !== 'true' && $this->input->isInteractive() && (new SymfonyQuestionHelper())->ask(
|
$wantsToSupport = false;
|
||||||
new ArrayInput([]),
|
|
||||||
$this->output,
|
if (getenv('PEST_NO_SUPPORT') !== 'true' && $this->input->isInteractive()) {
|
||||||
new ConfirmationQuestion(
|
$wantsToSupport = (new SymfonyQuestionHelper())->ask(
|
||||||
' <options=bold>Wanna show Pest some love by starring it on GitHub?</>',
|
new ArrayInput([]),
|
||||||
false,
|
$this->output,
|
||||||
)
|
new ConfirmationQuestion(
|
||||||
);
|
' <options=bold>Wanna show Pest some love by starring it on GitHub?</>',
|
||||||
|
false,
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
View::render('components.new-line');
|
||||||
|
}
|
||||||
|
|
||||||
if ($wantsToSupport === true) {
|
if ($wantsToSupport === true) {
|
||||||
if (PHP_OS_FAMILY == 'Darwin') {
|
if (PHP_OS_FAMILY == 'Darwin') {
|
||||||
|
|||||||
@ -66,7 +66,7 @@ final class Init implements HandlesArguments
|
|||||||
/**
|
/**
|
||||||
* Initializes the tests directory.
|
* Initializes the tests directory.
|
||||||
*/
|
*/
|
||||||
private function init(): never
|
private function init(): void
|
||||||
{
|
{
|
||||||
$testsBaseDir = "{$this->testSuite->rootPath}/tests";
|
$testsBaseDir = "{$this->testSuite->rootPath}/tests";
|
||||||
|
|
||||||
@ -97,7 +97,9 @@ final class Init implements HandlesArguments
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@mkdir(dirname($toPath));
|
if (! is_dir(dirname($toPath))) {
|
||||||
|
mkdir(dirname($toPath));
|
||||||
|
}
|
||||||
|
|
||||||
copy($fromPath, $toPath);
|
copy($fromPath, $toPath);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user