mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 14:48:11 +00:00
Improve code quality and fix test coverage.
This commit is contained in:
@@ -128,8 +128,8 @@ class TransactionController extends Controller
|
||||
$page = (int)$request->get('page');
|
||||
$pageSize = (int)Preferences::get('listPageSize', 50)->data;
|
||||
$path = route('transactions.index.all', [$what]);
|
||||
$first = $this->repository->first();
|
||||
$start = $first->date ?? new Carbon;
|
||||
$first = $this->repository->firstNull();
|
||||
$start = null === $first ? new Carbon : $first->date;
|
||||
$end = new Carbon;
|
||||
$subTitle = trans('firefly.all_' . $what);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user