Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoKoerber committed Mar 31, 2023
1 parent 36cfe49 commit bd241bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/OneTimeOperationShowCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function validateFilters(): void
throw_if(array_diff($filters, $validFilters), \Exception::class, 'Given filter is not valid. Allowed filters: '.implode('|', array_map('strtolower', $this->validFilters)));
}

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

Expand Down Expand Up @@ -104,7 +104,7 @@ protected function getOperationLinesForOutput(): Collection
protected function filterOperationLinesByStatus(Collection $operationOutputLines): Collection
{
return $operationOutputLines->filter(function (OperationsLineElement $lineElement) {
return $this->shouldDisplayByStatus($lineElement->getStatus());
return $this->shouldDisplayByFilter($lineElement->getStatus());
})->collect();
}
}

0 comments on commit bd241bc

Please sign in to comment.