mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 15:18:05 +00:00
Some minor cleanup.
This commit is contained in:
@@ -15,6 +15,8 @@ class BaseController extends Controller
|
||||
{
|
||||
\Event::fire('limits.check');
|
||||
\Event::fire('piggybanks.check');
|
||||
\Event::fire('recurring.check');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -200,7 +200,6 @@ class ChartController extends BaseController
|
||||
$start = clone Session::get('start');
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Expenses per day in the session's period. That's easy.
|
||||
*/
|
||||
@@ -245,7 +244,7 @@ class ChartController extends BaseController
|
||||
'type' => 'spline',
|
||||
'id' => 'rep-' . $repetition->id,
|
||||
'yAxis' => 1,
|
||||
'name' => 'Envelope #'.$repetition->id.' in ' . $repetition->periodShow(),
|
||||
'name' => 'Envelope #' . $repetition->id . ' in ' . $repetition->periodShow(),
|
||||
'data' => []
|
||||
];
|
||||
$current = clone $repetition->startdate;
|
||||
|
||||
@@ -38,15 +38,6 @@ class HomeController extends BaseController
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
// Queue::push(function($job)
|
||||
// {
|
||||
// Log::debug('This is a job!');
|
||||
// });
|
||||
|
||||
\Event::fire('limits.check');
|
||||
\Event::fire('piggybanks.check');
|
||||
\Event::fire('recurring.check');
|
||||
|
||||
|
||||
// count, maybe we need some introducing text to show:
|
||||
$count = $this->_accounts->count();
|
||||
@@ -78,13 +69,7 @@ class HomeController extends BaseController
|
||||
$transactions = array_chunk($transactions, 3);
|
||||
}
|
||||
|
||||
// get the users reminders:
|
||||
|
||||
$reminders = $this->_reminders->getCurrentRecurringReminders();
|
||||
|
||||
// build the home screen:
|
||||
return View::make('index')->with('count', $count)->with('transactions', $transactions)->with(
|
||||
'reminders', $reminders
|
||||
);
|
||||
return View::make('index')->with('count', $count)->with('transactions', $transactions);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user