diff --git a/src/IgnitionServiceProvider.php b/src/IgnitionServiceProvider.php index f2a7d80d..0b29d2ce 100644 --- a/src/IgnitionServiceProvider.php +++ b/src/IgnitionServiceProvider.php @@ -100,7 +100,7 @@ protected function registerRenderer(): void if (interface_exists('Whoops\Handler\HandlerInterface')) { $this->app->bind( 'Whoops\Handler\HandlerInterface', - fn(Application $app) => $app->make(IgnitionWhoopsHandler::class) + fn (Application $app) => $app->make(IgnitionWhoopsHandler::class) ); } @@ -108,7 +108,7 @@ protected function registerRenderer(): void if (interface_exists('Illuminate\Contracts\Foundation\ExceptionRenderer')) { $this->app->bind( 'Illuminate\Contracts\Foundation\ExceptionRenderer', - fn(Application $app) => $app->make(IgnitionExceptionRenderer::class) + fn (Application $app) => $app->make(IgnitionExceptionRenderer::class) ); } } @@ -137,11 +137,11 @@ protected function registerIgnition(): void $solutionProviders = $this->getSolutionProviders(); $solutionProviderRepository = new SolutionProviderRepository($solutionProviders); - $this->app->singleton(IgnitionConfig::class, fn() => $ignitionConfig); + $this->app->singleton(IgnitionConfig::class, fn () => $ignitionConfig); - $this->app->singleton(SolutionProviderRepositoryContract::class, fn() => $solutionProviderRepository); + $this->app->singleton(SolutionProviderRepositoryContract::class, fn () => $solutionProviderRepository); - $this->app->singleton(Ignition::class, fn() => (new Ignition())); + $this->app->singleton(Ignition::class, fn () => (new Ignition())); } protected function registerRecorders(): void @@ -176,7 +176,7 @@ function (Application $app): QueryRecorder { public function configureTinker(): void { - if (!$this->app->runningInConsole()) { + if (! $this->app->runningInConsole()) { if (isset($_SERVER['argv']) && ['artisan', 'tinker'] === $_SERVER['argv']) { app(Flare::class)->sendReportsImmediately(); } @@ -194,7 +194,7 @@ protected function registerViewExceptionMapper(): void { $handler = $this->app->make(ExceptionHandler::class); - if (!method_exists($handler, 'map')) { + if (! method_exists($handler, 'map')) { return; } @@ -224,11 +224,11 @@ protected function registerLogHandler(): void return tap( new Logger('Flare'), - fn(Logger $logger) => $logger->pushHandler($handler) + fn (Logger $logger) => $logger->pushHandler($handler) ); }); - Log::extend('flare', fn($app) => $app['flare.logger']); + Log::extend('flare', fn ($app) => $app['flare.logger']); } protected function startRecorders(): void @@ -246,7 +246,7 @@ protected function startRecorders(): void protected function configureQueue(): void { - if (!$this->app->bound('queue')) { + if (! $this->app->bound('queue')) { return; } @@ -270,7 +270,7 @@ protected function getLogLevel(string $logLevelString): int { $logLevel = Logger::getLevels()[strtoupper($logLevelString)] ?? null; - if (!$logLevel) { + if (! $logLevel) { throw InvalidConfig::invalidLogLevel($logLevelString); } @@ -299,7 +299,7 @@ protected function getSolutionProviders(): array { return collect(config('ignition.solution_providers')) ->reject( - fn(string $class) => in_array($class, config('ignition.ignored_solution_providers')) + fn (string $class) => in_array($class, config('ignition.ignored_solution_providers')) ) ->toArray(); }