Skip to content

Commit

Permalink
Merge pull request #278 from hydephp/analysis-QMbxlP
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
caendesilva authored May 4, 2022
2 parents 8b19a62 + 79edc2a commit 2ae4c95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/Commands/HydeInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ public function handle(): int

$this->warn('Please note that this installer should not be run in existing projects.');

if (!$this->confirm('Do you want to continue?', true)) {
if (! $this->confirm('Do you want to continue?', true)) {
$this->comment('Aborting installation.');

return 130;
}

Expand All @@ -54,7 +55,8 @@ protected function promptForSiteName()
{
if ($this->siteName = $this->ask('What is the name of your site? (leave blank to skip)')) {
$this->updateSiteName();
$this->info('Site name set to: ' . $this->siteName);
$this->info('Site name set to: '.$this->siteName);

return;
}

Expand All @@ -66,7 +68,8 @@ protected function promptForSiteUrl()
if ($this->siteUrl = $this->ask('What is the URL of your site? (leave blank to skip)')) {
$this->line('The URL is used to create permalinks which can improve SEO.');
$this->updateSiteUrl();
$this->info('Site URL set to: ' . $this->siteUrl);
$this->info('Site URL set to: '.$this->siteUrl);

return;
}

Expand Down
1 change: 0 additions & 1 deletion tests/Feature/Commands/HydeInstallCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,4 @@ public function test_command_calls_publish_homepage_command()
->expectsQuestion('Would you like to rebuild the site?', false)
->assertExitCode(0);
}

}

0 comments on commit 2ae4c95

Please sign in to comment.