mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code cleanup
This commit is contained in:
@@ -49,7 +49,7 @@ class PiggyBankServiceProvider extends ServiceProvider
|
||||
{
|
||||
$this->app->bind(
|
||||
PiggyBankRepositoryInterface::class,
|
||||
function (Application $app) {
|
||||
static function (Application $app) {
|
||||
/** @var PiggyBankRepository $repository */
|
||||
$repository = app(PiggyBankRepository::class);
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line (phpstan does not understand the reference to auth)
|
||||
@@ -62,7 +62,7 @@ class PiggyBankServiceProvider extends ServiceProvider
|
||||
|
||||
$this->app->bind(
|
||||
AdminPiggyBankRepositoryInterface::class,
|
||||
function (Application $app) {
|
||||
static function (Application $app) {
|
||||
/** @var AdminPiggyBankRepository $repository */
|
||||
$repository = app(AdminPiggyBankRepository::class);
|
||||
if ($app->auth->check()) { // @phpstan-ignore-line (phpstan does not understand the reference to auth)
|
||||
|
Reference in New Issue
Block a user