Skip to content

Firefly III: a personal finances manager

Optimise code.

James Cole054eecf54159
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 @@
<?php
+declare(strict_types=1);
/** @var \Illuminate\Database\Eloquent\Factory $factory */
diff --git a/database/factories/OBFactory.php b/database/factories/OBFactory.php
index 766ccbd62e..087be2daca 100644
--- a/database/factories/OBFactory.php
+++ b/database/factories/OBFactory.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/** @var \Illuminate\Database\Eloquent\Factory $factory */
diff --git a/database/factories/TransactionFactory.php b/database/factories/TransactionFactory.php
index e81f1fa0ac..6c9acb5eda 100644
--- a/database/factories/TransactionFactory.php
+++ b/database/factories/TransactionFactory.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/** @var \Illuminate\Database\Eloquent\Factory $factory */
diff --git a/routes/breadcrumbs.php b/routes/breadcrumbs.php
index 275f31c29a..28bca96e09 100644
--- a/routes/breadcrumbs.php
+++ b/routes/breadcrumbs.php
@@ -114,8 +114,8 @@ try {
if (null !== $start && null !== $end) {
$title = trans(
'firefly.between_dates_breadcrumb',
- ['start' => $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));
}