Various code cleanup.

This commit is contained in:
James Cole
2021-05-24 08:50:17 +02:00
parent 3ec9753808
commit 815fd5ff6b
135 changed files with 643 additions and 582 deletions

View File

@@ -208,7 +208,7 @@ trait CalculateXOccurrencesSince
$date->year = $mutator->year;
if ($mutator > $date) {
Log::debug(
sprintf('mutator (%s) > date (%s), so add a year to date (%s)', $mutator->format('Y-m-d'), $date->format('Y-m-d'), $date->format('Y-m-d'),)
sprintf('mutator (%s) > date (%s), so add a year to date (%s)', $mutator->format('Y-m-d'), $date->format('Y-m-d'), $date->format('Y-m-d'))
);
$date->addYear();
Log::debug(sprintf('Date is now %s', $date->format('Y-m-d')));
@@ -223,7 +223,7 @@ trait CalculateXOccurrencesSince
$return[] = clone $obj;
$total++;
}
$obj->addYears(1);
$obj->addYears();
$attempts++;
}