mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-19 16:10:00 +00:00
Code clean up.
This commit is contained in:
@@ -180,8 +180,8 @@ class BudgetController extends Controller
|
||||
|
||||
/**
|
||||
* Do some cleanup:
|
||||
* TODO reimplement the deletion of budget_limits and limit_repetitions with amount 0
|
||||
*/
|
||||
// $repository->cleanupBudgets();
|
||||
|
||||
// loop the budgets:
|
||||
/** @var Budget $budget */
|
||||
|
||||
@@ -9,7 +9,6 @@ use FireflyIII\Http\Controllers\Controller;
|
||||
use FireflyIII\Models\Budget;
|
||||
use FireflyIII\Models\LimitRepetition;
|
||||
use FireflyIII\Models\TransactionJournal;
|
||||
use FireflyIII\Repositories\Account\AccountRepositoryInterface as ARI;
|
||||
use FireflyIII\Repositories\Budget\BudgetRepositoryInterface;
|
||||
use FireflyIII\Support\CacheProperties;
|
||||
use Illuminate\Support\Collection;
|
||||
@@ -110,7 +109,7 @@ class BudgetController extends Controller
|
||||
$cache->addProperty($repetition->id);
|
||||
|
||||
if ($cache->has()) {
|
||||
return Response::json($cache->get());
|
||||
return Response::json($cache->get());
|
||||
}
|
||||
|
||||
$entries = new Collection;
|
||||
@@ -135,11 +134,9 @@ class BudgetController extends Controller
|
||||
*
|
||||
* @param BudgetRepositoryInterface $repository
|
||||
*
|
||||
* @param ARI $accountRepository
|
||||
*
|
||||
* @return \Symfony\Component\HttpFoundation\Response
|
||||
*/
|
||||
public function frontpage(BudgetRepositoryInterface $repository, ARI $accountRepository)
|
||||
public function frontpage(BudgetRepositoryInterface $repository)
|
||||
{
|
||||
$start = session('start', Carbon::now()->startOfMonth());
|
||||
$end = session('end', Carbon::now()->endOfMonth());
|
||||
|
||||
@@ -151,10 +151,6 @@ class HomeController extends Controller
|
||||
{
|
||||
// these routes are not relevant for the help pages:
|
||||
$ignore = [
|
||||
// 'logout', 'register', 'bills.rescan', 'attachments.download', 'attachments.preview',
|
||||
// 'budgets.income', 'csv.download-config', 'currency.default', 'export.status', 'export.download',
|
||||
// 'json.', 'help.', 'piggy-banks.addMoney', 'piggy-banks.removeMoney', 'rules.rule.up', 'rules.rule.down',
|
||||
// 'rules.rule-group.up', 'rules.rule-group.down', 'debugbar',
|
||||
];
|
||||
$routes = Route::getRoutes();
|
||||
/** @var \Illuminate\Routing\Route $route */
|
||||
|
||||
@@ -113,13 +113,11 @@ class TagController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Tag $tag
|
||||
*
|
||||
* @param TagRepositoryInterface $repository
|
||||
* @param Tag $tag
|
||||
*
|
||||
* @return \Illuminate\View\View
|
||||
*/
|
||||
public function edit(Tag $tag, TagRepositoryInterface $repository)
|
||||
public function edit(Tag $tag)
|
||||
{
|
||||
$subTitle = trans('firefly.edit_tag', ['tag' => $tag->tag]);
|
||||
$subTitleIcon = 'fa-tag';
|
||||
|
||||
Reference in New Issue
Block a user