Clean up piggy alerts.

This commit is contained in:
James Cole
2025-10-02 19:49:32 +02:00
parent b9c93091cd
commit a70fab1e87
3 changed files with 14 additions and 10 deletions

View File

@@ -331,9 +331,7 @@ trait PeriodOverview
}
return $this->statistics->filter(
function (PeriodStatistic $statistic) use ($start, $end, $type) {
return $statistic->start->eq($start) && $statistic->end->eq($end) && $statistic->type === $type;
}
fn(PeriodStatistic $statistic) => $statistic->start->eq($start) && $statistic->end->eq($end) && $statistic->type === $type
);
}
@@ -346,9 +344,7 @@ trait PeriodOverview
}
return $this->statistics->filter(
function (PeriodStatistic $statistic) use ($start, $end, $prefix) {
return $statistic->start->eq($start) && $statistic->end->eq($end) && str_starts_with($statistic->type, $prefix);
}
fn(PeriodStatistic $statistic) => $statistic->start->eq($start) && $statistic->end->eq($end) && str_starts_with($statistic->type, $prefix)
);
}