2020class Migrator
2121{
2222 public function __construct (
23- protected File $ file ,
24- protected Notification $ notification ,
23+ protected File $ file ,
24+ protected Notification $ notification ,
2525 protected ActionRepository $ repository ,
26- protected Config $ config ,
27- protected Application $ laravel
26+ protected Config $ config ,
27+ protected Application $ laravel
2828 ) {
2929 }
3030
@@ -48,7 +48,7 @@ public function runUp(string $filename, int $batch, Options $options): void
4848 $ action = $ this ->resolveAction ($ path );
4949 $ name = $ this ->resolveActionName ($ path );
5050
51- if ($ this ->allowAction ($ action , $ name , $ options )) {
51+ if ($ this ->allowAction ($ action , $ options )) {
5252 $ this ->notification ->task ($ name , function () use ($ action , $ name , $ batch ) {
5353 $ this ->hasAction ($ action , '__invoke ' )
5454 ? $ this ->runAction ($ action , '__invoke ' )
@@ -118,17 +118,13 @@ protected function deleteLog(string $name): void
118118 $ this ->repository ->delete ($ name );
119119 }
120120
121- protected function allowAction (Action $ action , string $ name , Options $ options ): bool
121+ protected function allowAction (Action $ action , Options $ options ): bool
122122 {
123123 if (! $ this ->allowEnvironment ($ action )) {
124- $ this ->notification ->info ("Action: $ name was skipped on this environment " );
125-
126124 return false ;
127125 }
128126
129127 if ($ this ->disallowBefore ($ action , $ options )) {
130- $ this ->notification ->info ("Action: $ name was skipped by 'before' option " );
131-
132128 return false ;
133129 }
134130
0 commit comments