Skip to content

Commit

Permalink
Updated parent method usage
Browse files Browse the repository at this point in the history
  • Loading branch information
OzanKurt committed Nov 25, 2017
1 parent c2982f1 commit 4272845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/MakeCriterionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function createCriterion()
if ($this->laravel->runningInConsole() && $this->fileManager->exists($filePath)) {
$response = $this->ask("The criterion [{$fileName}] already exists. Do you want to overwrite it?", 'Yes');

if ($response != 'Yes') {
if (!$this->isResponsePositive($response)) {
$this->line("The criterion [{$fileName}] will not be overwritten.");
return;
}
Expand Down

0 comments on commit 4272845

Please sign in to comment.