From 891676c7eff2929e4c82ef829ab8d3747afe1540 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Wed, 13 Mar 2019 11:25:20 +0800 Subject: [PATCH] Apply fixes from StyleCI (#17) --- app/Console/Commands/MigratePlayersTable.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/MigratePlayersTable.php b/app/Console/Commands/MigratePlayersTable.php index a1957493..fa7a0bc4 100644 --- a/app/Console/Commands/MigratePlayersTable.php +++ b/app/Console/Commands/MigratePlayersTable.php @@ -40,8 +40,9 @@ class MigratePlayersTable extends Command */ public function handle() { - if (!Schema::hasColumn('players', 'tid_steve')) { + if (! Schema::hasColumn('players', 'tid_steve')) { $this->info('No need to update.'); + return; } @@ -51,6 +52,7 @@ class MigratePlayersTable extends Command if ($count == 0) { $this->dropColumn(); $this->info('No need to update.'); + return; }