Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Basic code standard fixes.
James Cole923463642273
diff --git a/app/Api/V1/Controllers/AccountController.php b/app/Api/V1/Controllers/AccountController.phpindex 08a4bf1fa3..ab52fb15c0 100644--- a/app/Api/V1/Controllers/AccountController.php+++ b/app/Api/V1/Controllers/AccountController.php@@ -50,9 +50,10 @@ use League\Fractal\Resource\Item;class AccountController extends Controller{use AccountFilter, TransactionFilter;+ public const RESOURCE_KEY = 'accounts';private AccountRepositoryInterface $repository;- public const RESOURCE_KEY = 'accounts';+/*** AccountController constructor.diff --git a/app/Api/V1/Controllers/AttachmentController.php b/app/Api/V1/Controllers/AttachmentController.phpindex 562f1f81e2..61d10053c0 100644--- a/app/Api/V1/Controllers/AttachmentController.php+++ b/app/Api/V1/Controllers/AttachmentController.php@@ -52,6 +52,7 @@ class AttachmentController extends Controller/** @var AttachmentRepositoryInterface The attachment repository */private $repository;+/*** AccountController constructor.*diff --git a/app/Api/V1/Controllers/Autocomplete/AccountController.php b/app/Api/V1/Controllers/Autocomplete/AccountController.phpindex 7ca320ff92..17249f47c3 100644--- a/app/Api/V1/Controllers/Autocomplete/AccountController.php+++ b/app/Api/V1/Controllers/Autocomplete/AccountController.php@@ -43,6 +43,7 @@ class AccountController extends Controllerprivate array $balanceTypes;private AccountRepositoryInterface $repository;+/*** AccountController constructor.*/diff --git a/app/Api/V1/Controllers/Autocomplete/BillController.php b/app/Api/V1/Controllers/Autocomplete/BillController.phpindex 8aa06db30e..abdab1dee3 100644--- a/app/Api/V1/Controllers/Autocomplete/BillController.php+++ b/app/Api/V1/Controllers/Autocomplete/BillController.php@@ -38,6 +38,7 @@ class BillController extends Controller{private BillRepositoryInterface $repository;+/*** BillController constructor.*/diff --git a/app/Api/V1/Controllers/Autocomplete/BudgetController.php b/app/Api/V1/Controllers/Autocomplete/BudgetController.phpindex 296c12d6ab..1aebb3c83a 100644--- a/app/Api/V1/Controllers/Autocomplete/BudgetController.php+++ b/app/Api/V1/Controllers/Autocomplete/BudgetController.php@@ -38,6 +38,7 @@ class BudgetController extends Controller{private BudgetRepositoryInterface $repository;+/*** BudgetController constructor.*/diff --git a/app/Api/V1/Controllers/Autocomplete/CategoryController.php b/app/Api/V1/Controllers/Autocomplete/CategoryController.phpindex f1aed85ceb..878defc648 100644--- a/app/Api/V1/Controllers/Autocomplete/CategoryController.php+++ b/app/Api/V1/Controllers/Autocomplete/CategoryController.php@@ -37,6 +37,7 @@ class CategoryController extends Controller{private CategoryRepositoryInterface $repository;+/*** CategoryController constructor.*/diff --git a/app/Api/V1/Controllers/Autocomplete/CurrencyController.php b/app/Api/V1/Controllers/Autocomplete/CurrencyController.phpindex 28a32bc40f..1e8f67827d 100644--- a/app/Api/V1/Controllers/Autocomplete/CurrencyController.php+++ b/app/Api/V1/Controllers/Autocomplete/CurrencyController.php@@ -38,6 +38,7 @@ class CurrencyController extends Controller{private CurrencyRepositoryInterface $repository;+/*** CurrencyController constructor.*/diff --git a/app/Api/V1/Controllers/Autocomplete/ObjectGroupController.php b/app/Api/V1/Controllers/Autocomplete/ObjectGroupController.phpindex 0cebb73ae2..4ab1885c4f 100644--- a/app/Api/V1/Controllers/Autocomplete/ObjectGroupController.php+++ b/app/Api/V1/Controllers/Autocomplete/ObjectGroupController.php@@ -38,6 +38,7 @@ class ObjectGroupController extends Controller{private ObjectGroupRepositoryInterface $repository;+/*** CurrencyController constructor.*/diff --git a/app/Api/V1/Controllers/Autocomplete/PiggyBankController.php b/app/Api/V1/Controllers/Autocomplete/PiggyBankController.phpindex a62b7f342f..58f7290018 100644--- a/app/Api/V1/Controllers/Autocomplete/PiggyBankController.php+++ b/app/Api/V1/Controllers/Autocomplete/PiggyBankController.php@@ -40,6 +40,7 @@ class PiggyBankController extends Controllerprivate PiggyBankRepositoryInterface $piggyRepository;private AccountRepositoryInterface $accountRepository;+/*** PiggyBankController constructor.*/diff --git a/app/Api/V1/Controllers/Autocomplete/TagController.php b/app/Api/V1/Controllers/Autocomplete/TagController.phpindex 7d2a84109e..180badf8ce 100644--- a/app/Api/V1/Controllers/Autocomplete/TagController.php+++ b/app/Api/V1/Controllers/Autocomplete/TagController.php@@ -39,6 +39,7 @@ class TagController extends Controllerprivate TagRepositoryInterface $repository;+/*** TagController constructor.*/diff --git a/app/Api/V1/Controllers/Autocomplete/TransactionController.php b/app/Api/V1/Controllers/Autocomplete/TransactionController.phpindex aedee46147..7248999ce3 100644--- a/app/Api/V1/Controllers/Autocomplete/TransactionController.php+++ b/app/Api/V1/Controllers/Autocomplete/TransactionController.php@@ -42,6 +42,7 @@ class TransactionController extends Controllerprivate JournalRepositoryInterface $repository;private TransactionGroupRepositoryInterface $groupRepository;+/*** TransactionController constructor.*/diff --git a/app/Api/V1/Controllers/Autocomplete/TransactionTypeController.php b/app/Api/V1/Controllers/Autocomplete/TransactionTypeController.phpindex 56f7caf1c5..5dcee6c308 100644--- a/app/Api/V1/Controllers/Autocomplete/TransactionTypeController.php+++ b/app/Api/V1/Controllers/Autocomplete/TransactionTypeController.php@@ -37,6 +37,7 @@ class TransactionTypeController extends Controller{private TransactionTypeRepositoryInterface $repository;+/*** TransactionTypeController constructor.*/diff --git a/app/Api/V1/Controllers/AvailableBudgetController.php b/app/Api/V1/Controllers/AvailableBudgetController.phpindex d937bc1043..14e3335751 100644--- a/app/Api/V1/Controllers/AvailableBudgetController.php+++ b/app/Api/V1/Controllers/AvailableBudgetController.php@@ -45,6 +45,7 @@ class AvailableBudgetController extends Controller/** @var AvailableBudgetRepositoryInterface */private $abRepository;+/*** AvailableBudgetController constructor.*diff --git a/app/Api/V1/Controllers/BillController.php b/app/Api/V1/Controllers/BillController.phpindex 009685d3ec..3d906396aa 100644--- a/app/Api/V1/Controllers/BillController.php+++ b/app/Api/V1/Controllers/BillController.php@@ -52,6 +52,7 @@ class BillController extends Controller/** @var BillRepositoryInterface The bill repository */private $repository;+/*** BillController constructor.*diff --git a/app/Api/V1/Controllers/BudgetController.php b/app/Api/V1/Controllers/BudgetController.phpindex 592f01a725..ee61047a27 100644--- a/app/Api/V1/Controllers/BudgetController.php+++ b/app/Api/V1/Controllers/BudgetController.php@@ -57,6 +57,7 @@ class BudgetController extends Controller/** @var BudgetRepositoryInterface The budget repository */private $repository;+/*** BudgetController constructor.*diff --git a/app/Api/V1/Controllers/BudgetLimitController.php b/app/Api/V1/Controllers/BudgetLimitController.phpindex 6fd81263ca..f06c8fe2d5 100644--- a/app/Api/V1/Controllers/BudgetLimitController.php+++ b/app/Api/V1/Controllers/BudgetLimitController.php@@ -54,6 +54,7 @@ class BudgetLimitController extends Controller/** @var BudgetRepositoryInterface The budget repository */private $repository;+/*** BudgetLimitController constructor.*diff --git a/app/Api/V1/Controllers/CategoryController.php b/app/Api/V1/Controllers/CategoryController.phpindex 2f35fdbe9e..176d68cb4c 100644--- a/app/Api/V1/Controllers/CategoryController.php+++ b/app/Api/V1/Controllers/CategoryController.php@@ -50,6 +50,7 @@ class CategoryController extends Controller/** @var CategoryRepositoryInterface The category repository */private $repository;+/*** CategoryController constructor.*diff --git a/app/Api/V1/Controllers/Chart/AccountController.php b/app/Api/V1/Controllers/Chart/AccountController.phpindex 0da7d09c7d..26f4d0f709 100644--- a/app/Api/V1/Controllers/Chart/AccountController.php+++ b/app/Api/V1/Controllers/Chart/AccountController.php@@ -45,6 +45,7 @@ class AccountController extends Controllerprivate CurrencyRepositoryInterface $currencyRepository;private AccountRepositoryInterface $repository;+/*** AccountController constructor.*diff --git a/app/Api/V1/Controllers/Chart/AvailableBudgetController.php b/app/Api/V1/Controllers/Chart/AvailableBudgetController.phpindex aa83e7bf4c..1ab6e1a40b 100644--- a/app/Api/V1/Controllers/Chart/AvailableBudgetController.php+++ b/app/Api/V1/Controllers/Chart/AvailableBudgetController.php@@ -43,6 +43,7 @@ class AvailableBudgetController extends Controller/** @var BudgetRepositoryInterface */private $repository;+/*** AvailableBudgetController constructor.*diff --git a/app/Api/V1/Controllers/Chart/BudgetController.php b/app/Api/V1/Controllers/Chart/BudgetController.phpindex a5300e3830..b187c19d9d 100644--- a/app/Api/V1/Controllers/Chart/BudgetController.php+++ b/app/Api/V1/Controllers/Chart/BudgetController.php@@ -44,6 +44,7 @@ class BudgetController extends Controllerprivate OperationsRepositoryInterface $opsRepository;private BudgetRepositoryInterface $repository;+/*** BudgetController constructor.*diff --git a/app/Api/V1/Controllers/Chart/CategoryController.php b/app/Api/V1/Controllers/Chart/CategoryController.phpindex 36a32bb0ed..b9cc279b50 100644--- a/app/Api/V1/Controllers/Chart/CategoryController.php+++ b/app/Api/V1/Controllers/Chart/CategoryController.php@@ -45,6 +45,7 @@ class CategoryController extends Controller/** @var OperationsRepositoryInterface */private $opsRepository;+/*** AccountController constructor.*diff --git a/app/Api/V1/Controllers/ConfigurationController.php b/app/Api/V1/Controllers/ConfigurationController.phpindex bd81857431..45749d794f 100644--- a/app/Api/V1/Controllers/ConfigurationController.php+++ b/app/Api/V1/Controllers/ConfigurationController.php@@ -42,6 +42,7 @@ class ConfigurationController extends Controller/** @var UserRepositoryInterface The user repository */private $repository;+/*** ConfigurationController constructor.*diff --git a/app/Api/V1/Controllers/Controller.php b/app/Api/V1/Controllers/Controller.phpindex 018afbd46e..f2304ac4bf 100644--- a/app/Api/V1/Controllers/Controller.php+++ b/app/Api/V1/Controllers/Controller.php@@ -48,6 +48,7 @@ class Controller extends BaseController/** @var ParameterBag Parameters from the URI are stored here. */protected $parameters;+/*** Controller constructor.*diff --git a/app/Api/V1/Controllers/CurrencyController.php b/app/Api/V1/Controllers/CurrencyController.phpindex b6dae5fcb1..fd3918e669 100644--- a/app/Api/V1/Controllers/CurrencyController.php+++ b/app/Api/V1/Controllers/CurrencyController.php@@ -74,6 +74,7 @@ class CurrencyController extends Controller/** @var UserRepositoryInterface The user repository */private $userRepository;+/*** CurrencyRepository constructor.*@@ -578,7 +579,7 @@ class CurrencyController extends Controller$manager = $this->getManager();$currency = app('amount')->getDefaultCurrencyByUser(auth()->user());$this->parameters->set('defaultCurrency', $currency);-+/** @var CurrencyTransformer $transformer */$transformer = app(CurrencyTransformer::class);$transformer->setParameters($this->parameters);diff --git a/app/Api/V1/Controllers/CurrencyExchangeRateController.php b/app/Api/V1/Controllers/CurrencyExchangeRateController.phpindex 2cdb40ae6a..1aaafa8376 100644--- a/app/Api/V1/Controllers/CurrencyExchangeRateController.php+++ b/app/Api/V1/Controllers/CurrencyExchangeRateController.php@@ -43,6 +43,7 @@ class CurrencyExchangeRateController extends Controller/** @var CurrencyRepositoryInterface The currency repository */private $repository;+/*** CurrencyExchangeRateController constructor.*diff --git a/app/Api/V1/Controllers/LinkTypeController.php b/app/Api/V1/Controllers/LinkTypeController.phpindex ff23e1b463..fc2b0e76c6 100644--- a/app/Api/V1/Controllers/LinkTypeController.php+++ b/app/Api/V1/Controllers/LinkTypeController.php@@ -53,6 +53,7 @@ class LinkTypeController extends Controller/** @var UserRepositoryInterface The user repository */private $userRepository;+/*** LinkTypeController constructor.*diff --git a/app/Api/V1/Controllers/ObjectGroupController.php b/app/Api/V1/Controllers/ObjectGroupController.phpindex a078c61e93..317793c592 100644--- a/app/Api/V1/Controllers/ObjectGroupController.php+++ b/app/Api/V1/Controllers/ObjectGroupController.php@@ -45,6 +45,7 @@ class ObjectGroupController extends Controller{private ObjectGroupRepositoryInterface $repository;+/*** ObjectGroupController constructor.*diff --git a/app/Api/V1/Controllers/PiggyBankController.php b/app/Api/V1/Controllers/PiggyBankController.phpindex b9b115d140..8aa684075c 100644--- a/app/Api/V1/Controllers/PiggyBankController.php+++ b/app/Api/V1/Controllers/PiggyBankController.php@@ -48,6 +48,7 @@ class PiggyBankController extends Controller/** @var PiggyBankRepositoryInterface The piggy bank repository */private $repository;+/*** PiggyBankController constructor.*diff --git a/app/Api/V1/Controllers/RecurrenceController.php b/app/Api/V1/Controllers/RecurrenceController.phpindex f2a0f1fbf9..2b0b377f05 100644--- a/app/Api/V1/Controllers/RecurrenceController.php+++ b/app/Api/V1/Controllers/RecurrenceController.php@@ -51,6 +51,7 @@ class RecurrenceController extends Controller/** @var RecurringRepositoryInterface The recurring transaction repository */private $repository;+/*** RecurrenceController constructor.*diff --git a/app/Api/V1/Controllers/RuleController.php b/app/Api/V1/Controllers/RuleController.phpindex e1ef261a33..b05bf0de92 100644--- a/app/Api/V1/Controllers/RuleController.php+++ b/app/Api/V1/Controllers/RuleController.php@@ -55,6 +55,7 @@ class RuleController extends Controller/** @var RuleRepositoryInterface The rule repository */private $ruleRepository;+/*** RuleController constructor.*diff --git a/app/Api/V1/Controllers/RuleGroupController.php b/app/Api/V1/Controllers/RuleGroupController.phpindex 8e8212fde5..56ae95378d 100644--- a/app/Api/V1/Controllers/RuleGroupController.php+++ b/app/Api/V1/Controllers/RuleGroupController.php@@ -57,6 +57,7 @@ class RuleGroupController extends Controller/** @var RuleGroupRepositoryInterface The rule group repository */private $ruleGroupRepository;+/*** RuleGroupController constructor.*diff --git a/app/Api/V1/Controllers/Search/AccountController.php b/app/Api/V1/Controllers/Search/AccountController.phpindex 64c20a9cde..3c52be2688 100644--- a/app/Api/V1/Controllers/Search/AccountController.php+++ b/app/Api/V1/Controllers/Search/AccountController.php@@ -45,6 +45,7 @@ class AccountController extends Controllerprivate array $validFields;+public function __construct(){parent::__construct();diff --git a/app/Api/V1/Controllers/SummaryController.php b/app/Api/V1/Controllers/SummaryController.phpindex a401ef1fe1..de7e6d7207 100644--- a/app/Api/V1/Controllers/SummaryController.php+++ b/app/Api/V1/Controllers/SummaryController.php@@ -61,6 +61,7 @@ class SummaryController extends Controller/** @var OperationsRepositoryInterface */private $opsRepository;+/*** SummaryController constructor.*diff --git a/app/Api/V1/Controllers/TagController.php b/app/Api/V1/Controllers/TagController.phpindex dfbc2e1041..682b2fa20d 100644--- a/app/Api/V1/Controllers/TagController.php+++ b/app/Api/V1/Controllers/TagController.php@@ -53,6 +53,7 @@ class TagController extends Controller/** @var TagRepositoryInterface The tag repository */private $repository;+/*** TagController constructor.*diff --git a/app/Api/V1/Controllers/TransactionController.php b/app/Api/V1/Controllers/TransactionController.phpindex 25163f8929..e878baebbb 100644--- a/app/Api/V1/Controllers/TransactionController.php+++ b/app/Api/V1/Controllers/TransactionController.php@@ -62,6 +62,7 @@ class TransactionController extends Controllerprivate JournalAPIRepositoryInterface $journalAPIRepository;private JournalRepositoryInterface $repository;+/*** TransactionController constructor.*diff --git a/app/Api/V1/Controllers/TransactionLinkController.php b/app/Api/V1/Controllers/TransactionLinkController.phpindex d5079548b1..754a6feb69 100644--- a/app/Api/V1/Controllers/TransactionLinkController.php+++ b/app/Api/V1/Controllers/TransactionLinkController.php@@ -50,6 +50,7 @@ class TransactionLinkController extends Controller/** @var LinkTypeRepositoryInterface The link type repository */private $repository;+/*** TransactionLinkController constructor.*diff --git a/app/Api/V1/Controllers/UserController.php b/app/Api/V1/Controllers/UserController.phpindex 37fcbf14b9..832ff9ae56 100644--- a/app/Api/V1/Controllers/UserController.php+++ b/app/Api/V1/Controllers/UserController.php@@ -45,6 +45,7 @@ class UserController extends Controller{private UserRepositoryInterface $repository;+/*** UserController constructor.*diff --git a/app/Api/V1/Requests/TransactionUpdateRequest.php b/app/Api/V1/Requests/TransactionUpdateRequest.phpindex 30782ba423..892fb9e1a9 100644--- a/app/Api/V1/Requests/TransactionUpdateRequest.php+++ b/app/Api/V1/Requests/TransactionUpdateRequest.php@@ -55,6 +55,7 @@ class TransactionUpdateRequest extends FormRequest/** @var array Fields that contain text (with newlines) */private $textareaFields;+/*** Authorize logged in users.*