Small cleanup.

This commit is contained in:
Sander Dorigo
2014-10-12 09:29:19 +02:00
parent 4794156e80
commit 637a5579ec

View File

@@ -1,7 +1,6 @@
<?php <?php
use Firefly\Helper\Preferences\PreferencesHelperInterface as PHI; use Firefly\Helper\Preferences\PreferencesHelperInterface as PHI;
use Firefly\Storage\Account\AccountRepositoryInterface as ARI; use Firefly\Storage\Account\AccountRepositoryInterface as ARI;
use Firefly\Storage\Reminder\ReminderRepositoryInterface as RRI;
use Firefly\Storage\TransactionJournal\TransactionJournalRepositoryInterface as TJRI; use Firefly\Storage\TransactionJournal\TransactionJournalRepositoryInterface as TJRI;
/** /**
@@ -14,20 +13,17 @@ class HomeController extends BaseController
protected $_accounts; protected $_accounts;
protected $_preferences; protected $_preferences;
protected $_journal; protected $_journal;
protected $_reminders;
/** /**
* @param ARI $accounts * @param ARI $accounts
* @param PHI $preferences * @param PHI $preferences
* @param TJRI $journal * @param TJRI $journal
* @param RRI $reminders
*/ */
public function __construct(ARI $accounts, PHI $preferences, TJRI $journal, RRI $reminders) public function __construct(ARI $accounts, PHI $preferences, TJRI $journal)
{ {
$this->_accounts = $accounts; $this->_accounts = $accounts;
$this->_preferences = $preferences; $this->_preferences = $preferences;
$this->_journal = $journal; $this->_journal = $journal;
$this->_reminders = $reminders;
} }
public function jobDev() public function jobDev()
@@ -65,7 +61,6 @@ class HomeController extends BaseController
public function rangeJump($range) public function rangeJump($range)
{ {
$viewRange = $this->_preferences->get('viewRange', '1M');
$valid = ['1D', '1W', '1M', '3M', '6M', '1Y',]; $valid = ['1D', '1W', '1M', '3M', '6M', '1Y',];
if (in_array($range, $valid)) { if (in_array($range, $valid)) {