From 054eecf541590813fdd9b285ccd16aa6e86e7402 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 19 Oct 2020 06:41:31 +0200 Subject: [PATCH] Optimise code. --- database/factories/AccountFactory.php | 1 + database/factories/OBFactory.php | 1 + database/factories/TransactionFactory.php | 1 + routes/breadcrumbs.php | 4 ++-- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/database/factories/AccountFactory.php b/database/factories/AccountFactory.php index 65f01fb00d..cad374a9b4 100644 --- a/database/factories/AccountFactory.php +++ b/database/factories/AccountFactory.php @@ -1,4 +1,5 @@ $start ? $start->formatLocalized((string) trans('config.month_and_day')) : '', - 'end' => $end ? $end->formatLocalized((string) trans('config.month_and_day')) : '',] + ['start' =>$start->formatLocalized((string) trans('config.month_and_day')), + 'end' => $end->formatLocalized((string) trans('config.month_and_day')),] ); $breadcrumbs->push($title, route('accounts.show', $account)); }