From f328205b54f9e66ce43f23abf671941c8ee97f45 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Sat, 14 Feb 2026 19:48:45 +0300 Subject: [PATCH] [4.x] Simplify `MeasurementErrorService` by removing redundant `count` wrapper method --- src/Services/MeasurementErrorService.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Services/MeasurementErrorService.php b/src/Services/MeasurementErrorService.php index 285ff13..530a705 100644 --- a/src/Services/MeasurementErrorService.php +++ b/src/Services/MeasurementErrorService.php @@ -16,7 +16,7 @@ class MeasurementErrorService public function filter(array $data): array { - $count = $this->count($data); + $count = count($data); if ($this->disabled($count)) { return $data; @@ -45,11 +45,6 @@ protected function take(int $count): int return $count - (2 * $this->offset($count)); } - protected function count(array $values): int - { - return count($values); - } - protected function disabled(int $count): bool { return $count < $this->minCount;