mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Various code cleanup.
This commit is contained in:
@@ -101,9 +101,7 @@ class RecurrenceFactory
|
||||
if (array_key_exists('active', $data['recurrence'])) {
|
||||
$active = $data['recurrence']['active'];
|
||||
}
|
||||
if (null !== $repeatUntil) {
|
||||
$repeatUntilString = $repeatUntil->format('Y-m-d');
|
||||
}
|
||||
$repeatUntilString = $repeatUntil?->format('Y-m-d');
|
||||
|
||||
$recurrence = new Recurrence(
|
||||
[
|
||||
@@ -111,7 +109,7 @@ class RecurrenceFactory
|
||||
'transaction_type_id' => $type->id,
|
||||
'title' => $title,
|
||||
'description' => $description,
|
||||
'first_date' => $firstDate ? $firstDate->format('Y-m-d') : null,
|
||||
'first_date' => $firstDate?->format('Y-m-d'),
|
||||
'repeat_until' => $repetitions > 0 ? null : $repeatUntilString,
|
||||
'latest_date' => null,
|
||||
'repetitions' => $repetitions,
|
||||
|
Reference in New Issue
Block a user