mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Various code cleanup.
This commit is contained in:
@@ -64,7 +64,7 @@ class AccountServiceProvider extends ServiceProvider
|
||||
/** @var AccountRepositoryInterface $repository */
|
||||
$repository = app(AccountRepository::class);
|
||||
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ class AccountServiceProvider extends ServiceProvider
|
||||
/** @var OperationsRepository $repository */
|
||||
$repository = app(OperationsRepository::class);
|
||||
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ class AccountServiceProvider extends ServiceProvider
|
||||
/** @var AccountTaskerInterface $tasker */
|
||||
$tasker = app(AccountTasker::class);
|
||||
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$tasker->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ class AdminServiceProvider extends ServiceProvider
|
||||
function (Application $app) {
|
||||
/** @var LinkTypeRepository $repository */
|
||||
$repository = app(LinkTypeRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class AttachmentServiceProvider extends ServiceProvider
|
||||
function (Application $app) {
|
||||
/** @var AttachmentRepositoryInterface $repository */
|
||||
$repository = app(AttachmentRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class BillServiceProvider extends ServiceProvider
|
||||
/** @var BillRepositoryInterface $repository */
|
||||
$repository = app(BillRepository::class);
|
||||
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ class BudgetServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var BudgetRepositoryInterface $repository */
|
||||
$repository = app(BudgetRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ class BudgetServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var AvailableBudgetRepositoryInterface $repository */
|
||||
$repository = app(AvailableBudgetRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ class BudgetServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var BudgetLimitRepositoryInterface $repository */
|
||||
$repository = app(BudgetLimitRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ class BudgetServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var NoBudgetRepositoryInterface $repository */
|
||||
$repository = app(NoBudgetRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ class BudgetServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var OperationsRepositoryInterface $repository */
|
||||
$repository = app(OperationsRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ class CategoryServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var CategoryRepository $repository */
|
||||
$repository = app(CategoryRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ class CategoryServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var OperationsRepository $repository */
|
||||
$repository = app(OperationsRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class CategoryServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var NoCategoryRepository $repository */
|
||||
$repository = app(NoCategoryRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class CurrencyServiceProvider extends ServiceProvider
|
||||
function (Application $app) {
|
||||
/** @var CurrencyRepository $repository */
|
||||
$repository = app(CurrencyRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ class FireflyServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var ObjectGroupRepository $repository */
|
||||
$repository = app(ObjectGroupRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ class FireflyServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var WebhookRepository $repository */
|
||||
$repository = app(WebhookRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -212,7 +212,7 @@ class FireflyServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var SearchRuleEngine $engine */
|
||||
$engine = app(SearchRuleEngine::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$engine->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ class JournalServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var JournalRepositoryInterface $repository */
|
||||
$repository = app(JournalRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ class JournalServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var JournalAPIRepositoryInterface $repository */
|
||||
$repository = app(JournalAPIRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ class JournalServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var JournalCLIRepositoryInterface $repository */
|
||||
$repository = app(JournalCLIRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ class JournalServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var TransactionGroupRepositoryInterface $repository */
|
||||
$repository = app(TransactionGroupRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ class JournalServiceProvider extends ServiceProvider
|
||||
static function (Application $app) {
|
||||
/** @var GroupCollectorInterface $collector */
|
||||
$collector = app(GroupCollector::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$collector->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class PiggyBankServiceProvider extends ServiceProvider
|
||||
function (Application $app) {
|
||||
/** @var PiggyBankRepository $repository */
|
||||
$repository = app(PiggyBankRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class RecurringServiceProvider extends ServiceProvider
|
||||
/** @var RecurringRepositoryInterface $repository */
|
||||
$repository = app(RecurringRepository::class);
|
||||
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class RuleGroupServiceProvider extends ServiceProvider
|
||||
function (Application $app) {
|
||||
/** @var RuleGroupRepository $repository */
|
||||
$repository = app(RuleGroupRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class RuleServiceProvider extends ServiceProvider
|
||||
function (Application $app) {
|
||||
/** @var RuleRepository $repository */
|
||||
$repository = app(RuleRepository::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class SearchServiceProvider extends ServiceProvider
|
||||
function (Application $app) {
|
||||
/** @var OperatorQuerySearch $search */
|
||||
$search = app(OperatorQuerySearch::class);
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$search->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ class TagServiceProvider extends ServiceProvider
|
||||
/** @var TagRepository $repository */
|
||||
$repository = app(TagRepository::class);
|
||||
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ class TagServiceProvider extends ServiceProvider
|
||||
/** @var OperationsRepository $repository */
|
||||
$repository = app(OperationsRepository::class);
|
||||
|
||||
if ($app->auth->check()) {
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line
|
||||
$repository->setUser(auth()->user());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user