Skip to content

Commit

Permalink
Better output
Browse files Browse the repository at this point in the history
  • Loading branch information
maddhatter committed Oct 27, 2015
1 parent 2480f6b commit 9c5a01c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MaddHatter/ViewGenerator/MakeViewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ public function handle()
$this->file->makeDirectory($directory, 0777, true);
}

if ( ! $this->file->exists($path)) {
$this->file->put($path, $this->getViewContents());
}
$this->file->put($path, $this->getViewContents());
$this->info("Created a new view at {$path}");
}

protected function getFilePath()
Expand Down Expand Up @@ -109,6 +108,7 @@ private function getSections($parent)
$sections = [];

if ( ! $this->view->exists($parent)) {
$this->warn("Could not find view: {$parent}");
return $sections;
}

Expand Down

0 comments on commit 9c5a01c

Please sign in to comment.