Use PSR-12 code style

This commit is contained in:
James Cole
2022-10-30 14:24:28 +01:00
parent 2eebcb21f1
commit f53923f16c
187 changed files with 429 additions and 482 deletions

View File

@@ -58,7 +58,6 @@ class AppServiceProvider extends ServiceProvider
return response()
->json($value)
->withHeaders($headers);
});
}

View File

@@ -52,15 +52,17 @@ class AuthServiceProvider extends ServiceProvider
public function boot(): void
{
Auth::provider(
'remote_user_provider', function ($app, array $config) {
return new RemoteUserProvider;
}
'remote_user_provider',
function ($app, array $config) {
return new RemoteUserProvider();
}
);
Auth::extend(
'remote_user_guard', static function ($app, string $name, array $config) {
return new RemoteUserGuard(Auth::createUserProvider($config['provider']), $app);
}
'remote_user_guard',
static function ($app, string $name, array $config) {
return new RemoteUserGuard(Auth::createUserProvider($config['provider']), $app);
}
);
$this->registerPolicies();

View File

@@ -121,6 +121,5 @@ class BudgetServiceProvider extends ServiceProvider
return $repository;
}
);
}
}

View File

@@ -193,7 +193,6 @@ class EventServiceProvider extends ServiceProvider
->first();
// update!
if (null !== $availableBudget) {
$repository = app(BudgetLimitRepositoryInterface::class);
$repository->setUser($user);
$set = $repository->getAllBudgetLimitsByCurrency($limit->transactionCurrency, $limit->start_date, $limit->end_date);
@@ -229,7 +228,7 @@ class EventServiceProvider extends ServiceProvider
{
PiggyBank::created(
static function (PiggyBank $piggyBank) {
$repetition = new PiggyBankRepetition;
$repetition = new PiggyBankRepetition();
$repetition->piggyBank()->associate($piggyBank);
$repetition->startdate = $piggyBank->startdate;
$repetition->targetdate = $piggyBank->targetdate;
@@ -238,5 +237,4 @@ class EventServiceProvider extends ServiceProvider
}
);
}
}

View File

@@ -103,66 +103,66 @@ class FireflyServiceProvider extends ServiceProvider
$this->app->bind(
'preferences',
static function () {
return new Preferences;
return new Preferences();
}
);
$this->app->bind(
'fireflyconfig',
static function () {
return new FireflyConfig;
return new FireflyConfig();
}
);
$this->app->bind(
'navigation',
static function () {
return new Navigation;
return new Navigation();
}
);
$this->app->bind(
'amount',
static function () {
return new Amount;
return new Amount();
}
);
$this->app->bind(
'steam',
static function () {
return new Steam;
return new Steam();
}
);
$this->app->bind(
'expandedform',
static function () {
return new ExpandedForm;
return new ExpandedForm();
}
);
$this->app->bind(
'accountform',
static function () {
return new AccountForm;
return new AccountForm();
}
);
$this->app->bind(
'currencyform',
static function () {
return new CurrencyForm;
return new CurrencyForm();
}
);
$this->app->bind(
'piggybankform',
static function () {
return new PiggyBankForm;
return new PiggyBankForm();
}
);
$this->app->bind(
'ruleform',
static function () {
return new RuleForm;
return new RuleForm();
}
);

View File

@@ -59,5 +59,4 @@ class RecurringServiceProvider extends ServiceProvider
}
);
}
}

View File

@@ -65,9 +65,6 @@ class RouteServiceProvider extends ServiceProvider
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
});
}
}