Code cleanup.

This commit is contained in:
James Cole
2023-12-20 19:35:52 +01:00
parent c4f6366642
commit 64ec0cf62e
997 changed files with 12908 additions and 28136 deletions

View File

@@ -1,6 +1,5 @@
<?php
/*
* IndexController.php
* Copyright (c) 2023 james@firefly-iii.org
@@ -44,8 +43,6 @@ class IndexController extends Controller
/**
* CurrencyController constructor.
*
*/
public function __construct()
{
@@ -66,9 +63,8 @@ class IndexController extends Controller
/**
* Show overview of currencies.
*
* @param Request $request
*
* @return Factory|View
*
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
@@ -87,6 +83,7 @@ class IndexController extends Controller
static function (TransactionCurrency $currency) {
$default = true === $currency->userGroupDefault ? 0 : 1;
$enabled = true === $currency->userGroupEnabled ? 0 : 1;
return sprintf('%s-%s-%s', $default, $enabled, $currency->code);
}
);
@@ -101,5 +98,4 @@ class IndexController extends Controller
return view('currencies.index', compact('currencies', 'isOwner'));
}
}