Skip to content

Commit 45e8ef7

Browse files
Merge pull request #84 from TheDragonCode/3.x
Fixed comparison for status output
2 parents 5c12396 + 4ee53e4 commit 45e8ef7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Processors/Status.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public function handle(): void
2424

2525
[$files, $completed] = $this->getData();
2626

27-
if ($this->doesntEmpty($files, $completed)) {
28-
$this->showCaption();
29-
$this->showStatus($files, $completed);
27+
if ($this->isEmpty($files, $completed)) {
28+
$this->notification->info('No actions found');
3029

3130
return;
3231
}
3332

34-
$this->notification->info('No actions found');
33+
$this->showCaption();
34+
$this->showStatus($files, $completed);
3535
}
3636

3737
protected function showCaption(): void
@@ -77,8 +77,8 @@ protected function getCompleted(): array
7777
->toArray();
7878
}
7979

80-
protected function doesntEmpty(array $actions, array $completed): bool
80+
protected function isEmpty(array $actions, array $completed): bool
8181
{
82-
return ! empty($actions) && ! empty($completed);
82+
return empty($actions) && empty($completed);
8383
}
8484
}

0 commit comments

Comments
 (0)