mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Use PSR-12 code style
This commit is contained in:
@@ -58,7 +58,6 @@ class AppServiceProvider extends ServiceProvider
|
||||
return response()
|
||||
->json($value)
|
||||
->withHeaders($headers);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -121,6 +121,5 @@ class BudgetServiceProvider extends ServiceProvider
|
||||
return $repository;
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
@@ -59,5 +59,4 @@ class RecurringServiceProvider extends ServiceProvider
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -65,9 +65,6 @@ class RouteServiceProvider extends ServiceProvider
|
||||
Route::middleware('web')
|
||||
->namespace($this->namespace)
|
||||
->group(base_path('routes/web.php'));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user