mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-26 13:36:15 +00:00
Code optimizations.
This commit is contained in:
@@ -262,8 +262,7 @@ class TransactionController extends Controller
|
||||
{
|
||||
$range = app('preferences')->get('viewRange', '1M')->data;
|
||||
$first = $this->repository->firstNull();
|
||||
$start = new Carbon;
|
||||
$start->subYear();
|
||||
$start = Carbon::create()->subYear();
|
||||
$types = config('firefly.transactionTypesByWhat.' . $what);
|
||||
$entries = new Collection;
|
||||
if (null !== $first) {
|
||||
|
||||
Reference in New Issue
Block a user