@@ -111,13 +111,13 @@ public function passDeleteMigration()
111111 * We'll make sure to clear the migration as
112112 * being executed on the system.
113113 */
114- $ migration = ModuleMigration::where ( 'namespace ' , $ this ->module [ 'namespace ' ] )
114+ $ migration = ModuleMigration::where ( 'namespace ' , $ this ->module [ 'namespace ' ] )
115115 ->where ( 'file ' , $ path )
116116 ->get ();
117-
117+
118118 if ( $ migration ->count () > 0 ) {
119119 $ migration ->delete ();
120-
120+
121121 $ this ->info ( sprintf ( 'The migration "%s" for the module %s has been forgotten. ' , $ path , $ this ->module [ 'name ' ] ) );
122122
123123 /**
@@ -127,10 +127,9 @@ public function passDeleteMigration()
127127 Artisan::call ( 'cache:clear ' );
128128
129129 return true ;
130-
131130 } else {
132131 $ this ->info ( sprintf ( 'No migration found using the provided file path "%s" for the module "%s". ' , $ path , $ this ->module [ 'name ' ] ) );
133-
132+
134133 return false ;
135134 }
136135 }
@@ -150,12 +149,12 @@ public function streamContent( $content )
150149 {
151150 switch ( $ content ) {
152151 case 'migration ' :
153- return view ( 'generate.modules.migration ' , [
154- 'module ' => $ this ->module ,
155- 'migration ' => $ this ->migration ,
156- 'table ' => $ this ->table ,
157- 'schema ' => $ this ->schema ,
158- ]);
152+ return view ( 'generate.modules.migration ' , [
153+ 'module ' => $ this ->module ,
154+ 'migration ' => $ this ->migration ,
155+ 'table ' => $ this ->table ,
156+ 'schema ' => $ this ->schema ,
157+ ]);
159158 }
160159 }
161160
@@ -308,7 +307,6 @@ private function __getMigrationName( $migration )
308307 $ shouldIgnore = false ;
309308 $ details = explode ( ' ' , $ migration );
310309 foreach ( $ details as $ detail ) {
311-
312310 /**
313311 * while we've not looped the option, we assume the string
314312 * belong to the migration name
0 commit comments