@@ -48,7 +48,7 @@ public function runUp(string $filename, int $batch, Options $options): void
48
48
$ action = $ this ->resolveAction ($ path );
49
49
$ name = $ this ->resolveActionName ($ path );
50
50
51
- if ($ this ->allowAction ($ action , $ name , $ options )) {
51
+ if ($ this ->allowAction ($ action , $ options )) {
52
52
$ this ->notification ->task ($ name , function () use ($ action , $ name , $ batch ) {
53
53
$ this ->hasAction ($ action , '__invoke ' )
54
54
? $ this ->runAction ($ action , '__invoke ' )
@@ -118,21 +118,13 @@ protected function deleteLog(string $name): void
118
118
$ this ->repository ->delete ($ name );
119
119
}
120
120
121
- protected function allowAction (Action $ action , string $ name , Options $ options ): bool
121
+ protected function allowAction (Action $ action , Options $ options ): bool
122
122
{
123
123
if (! $ this ->allowEnvironment ($ action )) {
124
- $ this ->notification ->info ("Action: $ name was skipped on this environment " );
125
-
126
- return false ;
127
- }
128
-
129
- if ($ this ->disallowBefore ($ action , $ options )) {
130
- $ this ->notification ->info ("Action: $ name was skipped by 'before' option " );
131
-
132
124
return false ;
133
125
}
134
126
135
- return true ;
127
+ return ! ( $ this -> disallowBefore ( $ action , $ options )) ;
136
128
}
137
129
138
130
protected function allowEnvironment (Action $ action ): bool
0 commit comments