diff --git a/app/Transformers/RecurrenceTransformer.php b/app/Transformers/RecurrenceTransformer.php index af45c685b4..3bb01df867 100644 --- a/app/Transformers/RecurrenceTransformer.php +++ b/app/Transformers/RecurrenceTransformer.php @@ -94,23 +94,23 @@ class RecurrenceTransformer extends AbstractTransformer // basic data. $return = [ - 'id' => (int)$recurrence->id, - 'created_at' => $recurrence->created_at->toAtomString(), - 'updated_at' => $recurrence->updated_at->toAtomString(), - 'type' => $shortType, - 'title' => $recurrence->title, - 'description' => $recurrence->description, - 'first_date' => $recurrence->first_date->format('Y-m-d'), - 'latest_date' => null === $recurrence->latest_date ? null : $recurrence->latest_date->format('Y-m-d'), - 'repeat_until' => null === $recurrence->repeat_until ? null : $recurrence->repeat_until->format('Y-m-d'), - 'apply_rules' => $recurrence->apply_rules, - 'active' => $recurrence->active, - 'repetitions' => $recurrence->repetitions, - 'notes' => $this->repository->getNoteText($recurrence), - 'recurrence_repetitions' => $this->getRepetitions($recurrence), - 'transactions' => $this->getTransactions($recurrence), - 'meta' => $this->getMeta($recurrence), - 'links' => [ + 'id' => (int)$recurrence->id, + 'created_at' => $recurrence->created_at->toAtomString(), + 'updated_at' => $recurrence->updated_at->toAtomString(), + 'type' => $shortType, + 'title' => $recurrence->title, + 'description' => $recurrence->description, + 'first_date' => $recurrence->first_date->format('Y-m-d'), + 'latest_date' => null === $recurrence->latest_date ? null : $recurrence->latest_date->format('Y-m-d'), + 'repeat_until' => null === $recurrence->repeat_until ? null : $recurrence->repeat_until->format('Y-m-d'), + 'apply_rules' => $recurrence->apply_rules, + 'active' => $recurrence->active, + 'nr_of_repetitions' => $recurrence->repetitions, + 'notes' => $this->repository->getNoteText($recurrence), + 'repetitions' => $this->getRepetitions($recurrence), + 'transactions' => $this->getTransactions($recurrence), + 'meta' => $this->getMeta($recurrence), + 'links' => [ [ 'rel' => 'self', 'uri' => '/recurring/' . $recurrence->id,