Skip to content

Commit bd241bc

Browse files
committed
naming
1 parent 36cfe49 commit bd241bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/OneTimeOperationShowCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function validateFilters(): void
6060
throw_if(array_diff($filters, $validFilters), \Exception::class, 'Given filter is not valid. Allowed filters: '.implode('|', array_map('strtolower', $this->validFilters)));
6161
}
6262

63-
protected function shouldDisplayByStatus(string $filterName): bool
63+
protected function shouldDisplayByFilter(string $filterName): bool
6464
{
6565
$givenFilters = $this->argument('filter');
6666

@@ -104,7 +104,7 @@ protected function getOperationLinesForOutput(): Collection
104104
protected function filterOperationLinesByStatus(Collection $operationOutputLines): Collection
105105
{
106106
return $operationOutputLines->filter(function (OperationsLineElement $lineElement) {
107-
return $this->shouldDisplayByStatus($lineElement->getStatus());
107+
return $this->shouldDisplayByFilter($lineElement->getStatus());
108108
})->collect();
109109
}
110110
}

0 commit comments

Comments
 (0)