Skip to content

Commit b5a9666

Browse files
Change message when skipping actions running
1 parent da12be6 commit b5a9666

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/Services/Migrator.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
class 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

Comments
 (0)