Skip to content

Commit f328205

Browse files
[4.x] Simplify MeasurementErrorService by removing redundant count wrapper method
1 parent ada4ddf commit f328205

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/Services/MeasurementErrorService.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MeasurementErrorService
1616

1717
public function filter(array $data): array
1818
{
19-
$count = $this->count($data);
19+
$count = count($data);
2020

2121
if ($this->disabled($count)) {
2222
return $data;
@@ -45,11 +45,6 @@ protected function take(int $count): int
4545
return $count - (2 * $this->offset($count));
4646
}
4747

48-
protected function count(array $values): int
49-
{
50-
return count($values);
51-
}
52-
5348
protected function disabled(int $count): bool
5449
{
5550
return $count < $this->minCount;

0 commit comments

Comments
 (0)