mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 14:41:20 +00:00
Code cleanup
This commit is contained in:
@@ -80,7 +80,7 @@ trait CalculateRangeOccurrences
|
||||
}
|
||||
while ($start < $end) {
|
||||
$domCorrected = min($dayOfMonth, $start->daysInMonth);
|
||||
$start->day = $domCorrected;
|
||||
$start->day = $domCorrected;
|
||||
if (0 === $attempts % $skipMod && $start->lte($start) && $end->gte($start)) {
|
||||
$return[] = clone $start;
|
||||
}
|
||||
@@ -92,7 +92,6 @@ trait CalculateRangeOccurrences
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get the number of daily occurrences for a recurring transaction until date $end is reached. Will skip every $skipMod-1 occurrences.
|
||||
*
|
||||
|
||||
@@ -62,7 +62,6 @@ trait CalculateXOccurrences
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Calculates the number of monthly occurrences for a recurring transaction, starting at the date, until $count is reached. It will skip
|
||||
* over $skipMod -1 recurrences.
|
||||
@@ -140,7 +139,6 @@ trait CalculateXOccurrences
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Calculates the number of weekly occurrences for a recurring transaction, starting at the date, until $count is reached. It will skip
|
||||
* over $skipMod -1 recurrences.
|
||||
@@ -184,7 +182,6 @@ trait CalculateXOccurrences
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Calculates the number of yearly occurrences for a recurring transaction, starting at the date, until $count is reached. It will skip
|
||||
* over $skipMod -1 recurrences.
|
||||
|
||||
Reference in New Issue
Block a user