mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Basic code standard fixes.
This commit is contained in:
parent
886e9459a5
commit
9234636422
@ -50,9 +50,10 @@ use League\Fractal\Resource\Item;
|
|||||||
class AccountController extends Controller
|
class AccountController extends Controller
|
||||||
{
|
{
|
||||||
use AccountFilter, TransactionFilter;
|
use AccountFilter, TransactionFilter;
|
||||||
|
public const RESOURCE_KEY = 'accounts';
|
||||||
|
|
||||||
private AccountRepositoryInterface $repository;
|
private AccountRepositoryInterface $repository;
|
||||||
public const RESOURCE_KEY = 'accounts';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccountController constructor.
|
* AccountController constructor.
|
||||||
|
@ -52,6 +52,7 @@ class AttachmentController extends Controller
|
|||||||
/** @var AttachmentRepositoryInterface The attachment repository */
|
/** @var AttachmentRepositoryInterface The attachment repository */
|
||||||
private $repository;
|
private $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccountController constructor.
|
* AccountController constructor.
|
||||||
*
|
*
|
||||||
|
@ -43,6 +43,7 @@ class AccountController extends Controller
|
|||||||
private array $balanceTypes;
|
private array $balanceTypes;
|
||||||
private AccountRepositoryInterface $repository;
|
private AccountRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccountController constructor.
|
* AccountController constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -38,6 +38,7 @@ class BillController extends Controller
|
|||||||
{
|
{
|
||||||
private BillRepositoryInterface $repository;
|
private BillRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BillController constructor.
|
* BillController constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -38,6 +38,7 @@ class BudgetController extends Controller
|
|||||||
{
|
{
|
||||||
private BudgetRepositoryInterface $repository;
|
private BudgetRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BudgetController constructor.
|
* BudgetController constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -37,6 +37,7 @@ class CategoryController extends Controller
|
|||||||
{
|
{
|
||||||
private CategoryRepositoryInterface $repository;
|
private CategoryRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CategoryController constructor.
|
* CategoryController constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -38,6 +38,7 @@ class CurrencyController extends Controller
|
|||||||
{
|
{
|
||||||
private CurrencyRepositoryInterface $repository;
|
private CurrencyRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CurrencyController constructor.
|
* CurrencyController constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -38,6 +38,7 @@ class ObjectGroupController extends Controller
|
|||||||
{
|
{
|
||||||
private ObjectGroupRepositoryInterface $repository;
|
private ObjectGroupRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CurrencyController constructor.
|
* CurrencyController constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -40,6 +40,7 @@ class PiggyBankController extends Controller
|
|||||||
private PiggyBankRepositoryInterface $piggyRepository;
|
private PiggyBankRepositoryInterface $piggyRepository;
|
||||||
private AccountRepositoryInterface $accountRepository;
|
private AccountRepositoryInterface $accountRepository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PiggyBankController constructor.
|
* PiggyBankController constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -39,6 +39,7 @@ class TagController extends Controller
|
|||||||
|
|
||||||
private TagRepositoryInterface $repository;
|
private TagRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TagController constructor.
|
* TagController constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -42,6 +42,7 @@ class TransactionController extends Controller
|
|||||||
private JournalRepositoryInterface $repository;
|
private JournalRepositoryInterface $repository;
|
||||||
private TransactionGroupRepositoryInterface $groupRepository;
|
private TransactionGroupRepositoryInterface $groupRepository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TransactionController constructor.
|
* TransactionController constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -37,6 +37,7 @@ class TransactionTypeController extends Controller
|
|||||||
{
|
{
|
||||||
private TransactionTypeRepositoryInterface $repository;
|
private TransactionTypeRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TransactionTypeController constructor.
|
* TransactionTypeController constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -45,6 +45,7 @@ class AvailableBudgetController extends Controller
|
|||||||
/** @var AvailableBudgetRepositoryInterface */
|
/** @var AvailableBudgetRepositoryInterface */
|
||||||
private $abRepository;
|
private $abRepository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AvailableBudgetController constructor.
|
* AvailableBudgetController constructor.
|
||||||
*
|
*
|
||||||
|
@ -52,6 +52,7 @@ class BillController extends Controller
|
|||||||
/** @var BillRepositoryInterface The bill repository */
|
/** @var BillRepositoryInterface The bill repository */
|
||||||
private $repository;
|
private $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BillController constructor.
|
* BillController constructor.
|
||||||
*
|
*
|
||||||
|
@ -57,6 +57,7 @@ class BudgetController extends Controller
|
|||||||
/** @var BudgetRepositoryInterface The budget repository */
|
/** @var BudgetRepositoryInterface The budget repository */
|
||||||
private $repository;
|
private $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BudgetController constructor.
|
* BudgetController constructor.
|
||||||
*
|
*
|
||||||
|
@ -54,6 +54,7 @@ class BudgetLimitController extends Controller
|
|||||||
/** @var BudgetRepositoryInterface The budget repository */
|
/** @var BudgetRepositoryInterface The budget repository */
|
||||||
private $repository;
|
private $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BudgetLimitController constructor.
|
* BudgetLimitController constructor.
|
||||||
*
|
*
|
||||||
|
@ -50,6 +50,7 @@ class CategoryController extends Controller
|
|||||||
/** @var CategoryRepositoryInterface The category repository */
|
/** @var CategoryRepositoryInterface The category repository */
|
||||||
private $repository;
|
private $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CategoryController constructor.
|
* CategoryController constructor.
|
||||||
*
|
*
|
||||||
|
@ -45,6 +45,7 @@ class AccountController extends Controller
|
|||||||
private CurrencyRepositoryInterface $currencyRepository;
|
private CurrencyRepositoryInterface $currencyRepository;
|
||||||
private AccountRepositoryInterface $repository;
|
private AccountRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccountController constructor.
|
* AccountController constructor.
|
||||||
*
|
*
|
||||||
|
@ -43,6 +43,7 @@ class AvailableBudgetController extends Controller
|
|||||||
/** @var BudgetRepositoryInterface */
|
/** @var BudgetRepositoryInterface */
|
||||||
private $repository;
|
private $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AvailableBudgetController constructor.
|
* AvailableBudgetController constructor.
|
||||||
*
|
*
|
||||||
|
@ -44,6 +44,7 @@ class BudgetController extends Controller
|
|||||||
private OperationsRepositoryInterface $opsRepository;
|
private OperationsRepositoryInterface $opsRepository;
|
||||||
private BudgetRepositoryInterface $repository;
|
private BudgetRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BudgetController constructor.
|
* BudgetController constructor.
|
||||||
*
|
*
|
||||||
|
@ -45,6 +45,7 @@ class CategoryController extends Controller
|
|||||||
/** @var OperationsRepositoryInterface */
|
/** @var OperationsRepositoryInterface */
|
||||||
private $opsRepository;
|
private $opsRepository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccountController constructor.
|
* AccountController constructor.
|
||||||
*
|
*
|
||||||
|
@ -42,6 +42,7 @@ class ConfigurationController extends Controller
|
|||||||
/** @var UserRepositoryInterface The user repository */
|
/** @var UserRepositoryInterface The user repository */
|
||||||
private $repository;
|
private $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ConfigurationController constructor.
|
* ConfigurationController constructor.
|
||||||
*
|
*
|
||||||
|
@ -48,6 +48,7 @@ class Controller extends BaseController
|
|||||||
/** @var ParameterBag Parameters from the URI are stored here. */
|
/** @var ParameterBag Parameters from the URI are stored here. */
|
||||||
protected $parameters;
|
protected $parameters;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller constructor.
|
* Controller constructor.
|
||||||
*
|
*
|
||||||
|
@ -74,6 +74,7 @@ class CurrencyController extends Controller
|
|||||||
/** @var UserRepositoryInterface The user repository */
|
/** @var UserRepositoryInterface The user repository */
|
||||||
private $userRepository;
|
private $userRepository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CurrencyRepository constructor.
|
* CurrencyRepository constructor.
|
||||||
*
|
*
|
||||||
@ -578,7 +579,7 @@ class CurrencyController extends Controller
|
|||||||
$manager = $this->getManager();
|
$manager = $this->getManager();
|
||||||
$currency = app('amount')->getDefaultCurrencyByUser(auth()->user());
|
$currency = app('amount')->getDefaultCurrencyByUser(auth()->user());
|
||||||
$this->parameters->set('defaultCurrency', $currency);
|
$this->parameters->set('defaultCurrency', $currency);
|
||||||
|
|
||||||
/** @var CurrencyTransformer $transformer */
|
/** @var CurrencyTransformer $transformer */
|
||||||
$transformer = app(CurrencyTransformer::class);
|
$transformer = app(CurrencyTransformer::class);
|
||||||
$transformer->setParameters($this->parameters);
|
$transformer->setParameters($this->parameters);
|
||||||
|
@ -43,6 +43,7 @@ class CurrencyExchangeRateController extends Controller
|
|||||||
/** @var CurrencyRepositoryInterface The currency repository */
|
/** @var CurrencyRepositoryInterface The currency repository */
|
||||||
private $repository;
|
private $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CurrencyExchangeRateController constructor.
|
* CurrencyExchangeRateController constructor.
|
||||||
*
|
*
|
||||||
|
@ -53,6 +53,7 @@ class LinkTypeController extends Controller
|
|||||||
/** @var UserRepositoryInterface The user repository */
|
/** @var UserRepositoryInterface The user repository */
|
||||||
private $userRepository;
|
private $userRepository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LinkTypeController constructor.
|
* LinkTypeController constructor.
|
||||||
*
|
*
|
||||||
|
@ -45,6 +45,7 @@ class ObjectGroupController extends Controller
|
|||||||
{
|
{
|
||||||
private ObjectGroupRepositoryInterface $repository;
|
private ObjectGroupRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ObjectGroupController constructor.
|
* ObjectGroupController constructor.
|
||||||
*
|
*
|
||||||
|
@ -48,6 +48,7 @@ class PiggyBankController extends Controller
|
|||||||
/** @var PiggyBankRepositoryInterface The piggy bank repository */
|
/** @var PiggyBankRepositoryInterface The piggy bank repository */
|
||||||
private $repository;
|
private $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PiggyBankController constructor.
|
* PiggyBankController constructor.
|
||||||
*
|
*
|
||||||
|
@ -51,6 +51,7 @@ class RecurrenceController extends Controller
|
|||||||
/** @var RecurringRepositoryInterface The recurring transaction repository */
|
/** @var RecurringRepositoryInterface The recurring transaction repository */
|
||||||
private $repository;
|
private $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RecurrenceController constructor.
|
* RecurrenceController constructor.
|
||||||
*
|
*
|
||||||
|
@ -55,6 +55,7 @@ class RuleController extends Controller
|
|||||||
/** @var RuleRepositoryInterface The rule repository */
|
/** @var RuleRepositoryInterface The rule repository */
|
||||||
private $ruleRepository;
|
private $ruleRepository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RuleController constructor.
|
* RuleController constructor.
|
||||||
*
|
*
|
||||||
|
@ -57,6 +57,7 @@ class RuleGroupController extends Controller
|
|||||||
/** @var RuleGroupRepositoryInterface The rule group repository */
|
/** @var RuleGroupRepositoryInterface The rule group repository */
|
||||||
private $ruleGroupRepository;
|
private $ruleGroupRepository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RuleGroupController constructor.
|
* RuleGroupController constructor.
|
||||||
*
|
*
|
||||||
|
@ -45,6 +45,7 @@ class AccountController extends Controller
|
|||||||
|
|
||||||
private array $validFields;
|
private array $validFields;
|
||||||
|
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
@ -61,6 +61,7 @@ class SummaryController extends Controller
|
|||||||
/** @var OperationsRepositoryInterface */
|
/** @var OperationsRepositoryInterface */
|
||||||
private $opsRepository;
|
private $opsRepository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SummaryController constructor.
|
* SummaryController constructor.
|
||||||
*
|
*
|
||||||
|
@ -53,6 +53,7 @@ class TagController extends Controller
|
|||||||
/** @var TagRepositoryInterface The tag repository */
|
/** @var TagRepositoryInterface The tag repository */
|
||||||
private $repository;
|
private $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TagController constructor.
|
* TagController constructor.
|
||||||
*
|
*
|
||||||
|
@ -62,6 +62,7 @@ class TransactionController extends Controller
|
|||||||
private JournalAPIRepositoryInterface $journalAPIRepository;
|
private JournalAPIRepositoryInterface $journalAPIRepository;
|
||||||
private JournalRepositoryInterface $repository;
|
private JournalRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TransactionController constructor.
|
* TransactionController constructor.
|
||||||
*
|
*
|
||||||
|
@ -50,6 +50,7 @@ class TransactionLinkController extends Controller
|
|||||||
/** @var LinkTypeRepositoryInterface The link type repository */
|
/** @var LinkTypeRepositoryInterface The link type repository */
|
||||||
private $repository;
|
private $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TransactionLinkController constructor.
|
* TransactionLinkController constructor.
|
||||||
*
|
*
|
||||||
|
@ -45,6 +45,7 @@ class UserController extends Controller
|
|||||||
{
|
{
|
||||||
private UserRepositoryInterface $repository;
|
private UserRepositoryInterface $repository;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UserController constructor.
|
* UserController constructor.
|
||||||
*
|
*
|
||||||
|
@ -55,6 +55,7 @@ class TransactionUpdateRequest extends FormRequest
|
|||||||
/** @var array Fields that contain text (with newlines) */
|
/** @var array Fields that contain text (with newlines) */
|
||||||
private $textareaFields;
|
private $textareaFields;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Authorize logged in users.
|
* Authorize logged in users.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user