File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments