Skip to content

Commit 6720fb1

Browse files
authored
Refactor: return Command::FAILURE (#53354)
1 parent 6bed63f commit 6720fb1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Illuminate/Database/Console/Migrations/RefreshCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function handle()
3838
{
3939
if ($this->isProhibited() ||
4040
! $this->confirmToProceed()) {
41-
return 1;
41+
return Command::FAILURE;
4242
}
4343

4444
// Next we'll gather some of the options so that we can have the right options

src/Illuminate/Database/Console/Migrations/ResetCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Illuminate\Database\Console\Migrations;
44

5+
use Illuminate\Console\Command;
56
use Illuminate\Console\ConfirmableTrait;
67
use Illuminate\Console\Prohibitable;
78
use Illuminate\Database\Migrations\Migrator;
@@ -56,7 +57,7 @@ public function handle()
5657
{
5758
if ($this->isProhibited() ||
5859
! $this->confirmToProceed()) {
59-
return 1;
60+
return Command::FAILURE;
6061
}
6162

6263
return $this->migrator->usingConnection($this->option('database'), function () {

0 commit comments

Comments
 (0)