Various code cleanup.

This commit is contained in:
James Cole
2021-04-07 07:28:43 +02:00
parent 4ddcb0c965
commit f12744ad8c
180 changed files with 714 additions and 721 deletions

View File

@@ -130,13 +130,13 @@ class WholePeriodChartGenerator
$step = '1D';
$months = $start->diffInMonths($end);
if ($months > 3) {
$step = '1W'; // @codeCoverageIgnore
$step = '1W';
}
if ($months > 24) {
$step = '1M'; // @codeCoverageIgnore
$step = '1M';
}
if ($months > 100) {
$step = '1Y'; // @codeCoverageIgnore
$step = '1Y';
}
return $step;