Skip to content

Commit e0ab2f6

Browse files
committed
static: remove unnecessary phpstan ignore
1 parent a706262 commit e0ab2f6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/BoostServiceProvider.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class BoostServiceProvider extends ServiceProvider
2222
public function register(): void
2323
{
2424
$this->mergeConfigFrom(
25-
__DIR__.'/../config/boost.php',
25+
__DIR__ . '/../config/boost.php',
2626
'boost'
2727
);
2828

@@ -36,7 +36,7 @@ public function register(): void
3636
];
3737

3838
$cacheKey = 'boost.roster.scan';
39-
$lastModified = max(array_map(fn ($path) => file_exists($path) ? filemtime($path) : 0, $lockFiles));
39+
$lastModified = max(array_map(fn($path) => file_exists($path) ? filemtime($path) : 0, $lockFiles));
4040

4141
$cached = cache()->get($cacheKey);
4242
if ($cached && isset($cached['timestamp']) && $cached['timestamp'] >= $lastModified) {
@@ -64,22 +64,21 @@ public function boot(Router $router): void
6464
return;
6565
}
6666

67-
// @phpstan-ignore-next-line
6867
Mcp::local('laravel-boost', Boost::class);
6968

7069
$this->registerPublishing();
7170
$this->registerCommands();
7271
$this->registerRoutes();
7372
$this->registerBrowserLogger();
74-
$this->callAfterResolving('blade.compiler', fn (BladeCompiler $bladeCompiler) => $this->registerBladeDirectives($bladeCompiler));
73+
$this->callAfterResolving('blade.compiler', fn(BladeCompiler $bladeCompiler) => $this->registerBladeDirectives($bladeCompiler));
7574
$this->hookIntoResponses($router);
7675
}
7776

7877
private function registerPublishing(): void
7978
{
8079
if ($this->app->runningInConsole()) {
8180
$this->publishes([
82-
__DIR__.'/../config/boost.php' => config_path('boost.php'),
81+
__DIR__ . '/../config/boost.php' => config_path('boost.php'),
8382
], 'boost-config');
8483
}
8584
}
@@ -164,7 +163,7 @@ private function registerBrowserLogger(): void
164163

165164
private function registerBladeDirectives(BladeCompiler $bladeCompiler): void
166165
{
167-
$bladeCompiler->directive('boostJs', fn () => '<?php echo \\Laravel\\Boost\\Services\\BrowserLogger::getScript(); ?>');
166+
$bladeCompiler->directive('boostJs', fn() => '<?php echo \\Laravel\\Boost\\Services\\BrowserLogger::getScript(); ?>');
168167
}
169168

170169
private static function mapJsTypeToPsr3Level(string $type): string

0 commit comments

Comments
 (0)