Skip to content

Commit

Permalink
work on formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 14, 2017
1 parent 26c4430 commit bef8f35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Illuminate/Auth/Console/MakeAuthCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class MakeAuthCommand extends Command
* @var string
*/
protected $signature = 'make:auth
{--views : Only scaffold the authentication views}
{--force : Overwrite existing views by default}';
{--views : Only scaffold the authentication views}
{--force : Overwrite existing views by default}';

/**
* The console command description.
Expand Down Expand Up @@ -90,8 +90,8 @@ protected function createDirectories()
protected function exportViews()
{
foreach ($this->views as $key => $value) {
if (! $this->option('force') && file_exists(resource_path('views/'.$value))) {
if (! $this->confirm('The view '.$value.' already exists, Do you wish overwrite it?')) {
if (file_exists(resource_path('views/'.$value)) && ! $this->option('force')) {
if (! $this->confirm("The [{$value}] view already exists. Do you want to replace it?")) {
continue;
}
}
Expand Down

0 comments on commit bef8f35

Please sign in to comment.