@@ -24,11 +24,12 @@ class MigrationCommand extends CommandHelper
2424 */
2525 public function handle ()
2626 {
27- echo "Usage examples: \n" ;
28- echo " php tame migrate:fresh --seed --force \n" ;
29- echo " php tame migrate:refresh --seed --force \n" ;
30- echo " php tame migrate:status \n" ;
31- echo " php tame migrate:reset \n" ;
27+ Logger::helpHeader ('<yellow>Usage:</yellow> ' );
28+ Logger::writeln (' php tame migrate:fresh --seed --force ' );
29+ Logger::writeln (' php tame migrate:refresh ' );
30+ Logger::writeln (' php tame migrate:status ' );
31+ Logger::writeln (' php tame migrate:reset ' );
32+ Logger::writeln ('' );
3233 }
3334
3435 /**
@@ -40,8 +41,6 @@ public function fresh()
4041 $ force = $ this ->option ('force ' );
4142 $ seed = $ this ->option ('seed ' );
4243
43-
44-
4544 if ($ force ){
4645 Artisan::call ('db:wipe --force --drop-types --drop-views --response=0 ' );
4746 }
@@ -96,7 +95,7 @@ public function status()
9695
9796 if (!is_dir ($ migrationsDir )) {
9897 $ this ->warning ("Migrations directory not found: {$ migrationsDir }" );
99- return 0 ;
98+ return ;
10099 }
101100
102101 // Connect to DB and validate connection
@@ -111,7 +110,7 @@ public function status()
111110
112111 if (empty ($ files )) {
113112 $ this ->info ("No migration files found in: {$ migrationsDir }" );
114- return 0 ;
113+ return ;
115114 }
116115
117116 // Build a single table output
@@ -139,7 +138,7 @@ public function status()
139138
140139 if (empty ($ rows )) {
141140 $ this ->info ("No detectable migration tables. " );
142- return 0 ;
141+ return ;
143142 }
144143
145144 // Compute column widths
@@ -168,7 +167,7 @@ public function status()
168167 }
169168 Logger::writeln ($ sep );
170169
171- return 0 ;
170+ return ;
172171 }
173172
174173}
0 commit comments