Skip to content

Firefly III: a personal finances manager

Remove broken code.

James Cole419382f9e0a1
diff --git a/app/Providers/FireflyServiceProvider.php b/app/Providers/FireflyServiceProvider.php
index 9484f9fb7b..a6671489e1 100644
--- a/app/Providers/FireflyServiceProvider.php
+++ b/app/Providers/FireflyServiceProvider.php
@@ -132,7 +132,7 @@ class FireflyServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): ObjectGroupRepositoryInterface {
/** @var ObjectGroupRepository $repository */
$repository = app(ObjectGroupRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
@@ -142,7 +142,7 @@ class FireflyServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): PeriodStatisticRepositoryInterface {
/** @var PeriodStatisticRepository $repository */
$repository = app(PeriodStatisticRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
@@ -152,7 +152,7 @@ class FireflyServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): WebhookRepositoryInterface {
/** @var WebhookRepository $repository */
$repository = app(WebhookRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
@@ -170,7 +170,7 @@ class FireflyServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): RuleEngineInterface {
/** @var SearchRuleEngine $engine */
$engine = app(SearchRuleEngine::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$engine->setUser(auth()->user());
}
@@ -180,7 +180,7 @@ class FireflyServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): UserGroupRepositoryInterface {
/** @var UserGroupRepository $repository */
$repository = app(UserGroupRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
diff --git a/app/Providers/JournalServiceProvider.php b/app/Providers/JournalServiceProvider.php
index 8ebade3a63..21aa954275 100644
--- a/app/Providers/JournalServiceProvider.php
+++ b/app/Providers/JournalServiceProvider.php
@@ -63,7 +63,7 @@ class JournalServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): GroupCollectorInterface {
/** @var GroupCollectorInterface $collector */
$collector = app(GroupCollector::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$collector->setUser(auth()->user());
}
@@ -79,7 +79,7 @@ class JournalServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): TransactionGroupRepositoryInterface {
/** @var TransactionGroupRepositoryInterface $repository */
$repository = app(TransactionGroupRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
@@ -95,7 +95,7 @@ class JournalServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): JournalRepositoryInterface {
/** @var JournalRepositoryInterface $repository */
$repository = app(JournalRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
@@ -106,7 +106,7 @@ class JournalServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): JournalAPIRepositoryInterface {
/** @var JournalAPIRepositoryInterface $repository */
$repository = app(JournalAPIRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
@@ -117,7 +117,7 @@ class JournalServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): JournalCLIRepositoryInterface {
/** @var JournalCLIRepositoryInterface $repository */
$repository = app(JournalCLIRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
diff --git a/app/Providers/PiggyBankServiceProvider.php b/app/Providers/PiggyBankServiceProvider.php
index 51911e16f6..23151fed3c 100644
--- a/app/Providers/PiggyBankServiceProvider.php
+++ b/app/Providers/PiggyBankServiceProvider.php
@@ -48,7 +48,7 @@ class PiggyBankServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): PiggyBankRepositoryInterface {
/** @var PiggyBankRepository $repository */
$repository = app(PiggyBankRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
diff --git a/app/Providers/RecurringServiceProvider.php b/app/Providers/RecurringServiceProvider.php
index 7fa059421f..419e66173f 100644
--- a/app/Providers/RecurringServiceProvider.php
+++ b/app/Providers/RecurringServiceProvider.php
@@ -49,7 +49,7 @@ class RecurringServiceProvider extends ServiceProvider
/** @var RecurringRepositoryInterface $repository */
$repository = app(RecurringRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
diff --git a/app/Providers/RuleGroupServiceProvider.php b/app/Providers/RuleGroupServiceProvider.php
index 050c043c51..59fe12e4ab 100644
--- a/app/Providers/RuleGroupServiceProvider.php
+++ b/app/Providers/RuleGroupServiceProvider.php
@@ -48,7 +48,7 @@ class RuleGroupServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): RuleGroupRepositoryInterface {
/** @var RuleGroupRepository $repository */
$repository = app(RuleGroupRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
diff --git a/app/Providers/RuleServiceProvider.php b/app/Providers/RuleServiceProvider.php
index 5ca88c5db1..3e618b9c22 100644
--- a/app/Providers/RuleServiceProvider.php
+++ b/app/Providers/RuleServiceProvider.php
@@ -48,7 +48,7 @@ class RuleServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): RuleRepositoryInterface {
/** @var RuleRepository $repository */
$repository = app(RuleRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
diff --git a/app/Providers/SearchServiceProvider.php b/app/Providers/SearchServiceProvider.php
index 36401c9034..e2723a19dc 100644
--- a/app/Providers/SearchServiceProvider.php
+++ b/app/Providers/SearchServiceProvider.php
@@ -52,7 +52,7 @@ class SearchServiceProvider extends ServiceProvider
$this->app->bind(static function (Application $app): SearchInterface {
/** @var OperatorQuerySearch $search */
$search = app(OperatorQuerySearch::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$search->setUser(auth()->user());
}
diff --git a/app/Providers/TagServiceProvider.php b/app/Providers/TagServiceProvider.php
index 9f21938c6c..d1cdd8618c 100644
--- a/app/Providers/TagServiceProvider.php
+++ b/app/Providers/TagServiceProvider.php
@@ -51,7 +51,7 @@ class TagServiceProvider extends ServiceProvider
/** @var TagRepository $repository */
$repository = app(TagRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}
@@ -62,7 +62,7 @@ class TagServiceProvider extends ServiceProvider
/** @var OperationsRepository $repository */
$repository = app(OperationsRepository::class);
- if ($app->auth->check()) { (phpstan does not understand the reference to auth)
+ if ($app->auth->check()) {
$repository->setUser(auth()->user());
}