@@ -92,21 +92,21 @@ protected function reset()
9292
9393 $ migrations = array_reverse ($ this ->migrator ->getRepository ()->getRan ());
9494
95- if (count ($ migrations ) == 0 ){
96- $ this ->output (" Nothing to rollback. " );
95+ if (count ($ migrations ) == 0 ) {
96+ $ this ->output (' Nothing to rollback. ' );
9797 } else {
9898 $ this ->migrator ->requireFiles ($ files );
9999
100- foreach ($ migrations as $ migration ){
101- if (!array_key_exists ($ migration , $ files )){
100+ foreach ($ migrations as $ migration ) {
101+ if (!array_key_exists ($ migration , $ files )) {
102102 continue ;
103103 }
104104
105- $ this ->runDown ($ files [$ migration ], (object ) [" migration " => $ migration ]);
105+ $ this ->runDown ($ files [$ migration ], (object ) [' migration ' => $ migration ]);
106106 }
107107 }
108108
109- foreach ($ this ->migrator ->getNotes () as $ note ){
109+ foreach ($ this ->migrator ->getNotes () as $ note ) {
110110 $ this ->output ->writeln ($ note );
111111 }
112112 }
@@ -128,15 +128,16 @@ protected function runDown($file, $migration)
128128
129129 $ this ->migrator ->getRepository ()->delete ($ migration );
130130
131- $ this ->info (" Rolledback: " .$ file );
131+ $ this ->info (' Rolledback: ' .$ file );
132132 }
133133
134134 /**
135135 * Generate a list of all migration paths, given the arguments/operations supplied.
136136 *
137137 * @return array
138138 */
139- protected function getMigrationPaths (){
139+ protected function getMigrationPaths ()
140+ {
140141 $ migrationPaths = [];
141142
142143 foreach ($ this ->getSlugsToReset () as $ slug ) {
@@ -153,16 +154,17 @@ protected function getMigrationPaths(){
153154 *
154155 * @return array
155156 */
156- protected function getSlugsToReset (){
157- if ($ this ->validSlugProvided ()){
158- return [$ this ->argument ("slug " )];
157+ protected function getSlugsToReset ()
158+ {
159+ if ($ this ->validSlugProvided ()) {
160+ return [$ this ->argument ('slug ' )];
159161 }
160162
161- if ($ this ->option (" force " )) {
162- return $ this ->module ->all ()->pluck (" slug " );
163+ if ($ this ->option (' force ' )) {
164+ return $ this ->module ->all ()->pluck (' slug ' );
163165 }
164166
165- return $ this ->module ->enabled ()->pluck (" slug " );
167+ return $ this ->module ->enabled ()->pluck (' slug ' );
166168 }
167169
168170 /**
@@ -172,16 +174,17 @@ protected function getSlugsToReset(){
172174 *
173175 * @return bool
174176 */
175- protected function validSlugProvided (){
176- if (empty ($ this ->argument ("slug " ))){
177+ protected function validSlugProvided ()
178+ {
179+ if (empty ($ this ->argument ('slug ' ))) {
177180 return false ;
178181 }
179182
180- if ($ this ->module ->isEnabled ($ this ->argument (" slug " ))){
183+ if ($ this ->module ->isEnabled ($ this ->argument (' slug ' ))) {
181184 return true ;
182185 }
183186
184- if ($ this ->option (" force " )) {
187+ if ($ this ->option (' force ' )) {
185188 return true ;
186189 }
187190
0 commit comments