From bd241bce2f3011ec583927e1f8707a6340934436 Mon Sep 17 00:00:00 2001 From: "timo.koerber" Date: Fri, 31 Mar 2023 17:05:41 +0200 Subject: [PATCH] naming --- src/Commands/OneTimeOperationShowCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/OneTimeOperationShowCommand.php b/src/Commands/OneTimeOperationShowCommand.php index b441ded..33312ac 100644 --- a/src/Commands/OneTimeOperationShowCommand.php +++ b/src/Commands/OneTimeOperationShowCommand.php @@ -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'); @@ -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(); } }