Skip to content

Commit

Permalink
code style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
d8vjork committed Nov 17, 2023
1 parent 330895c commit bbc9923
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/FilamentMapPickerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;


class FilamentMapPickerServiceProvider extends PackageServiceProvider
{
public static string $name = 'filament-map-picker';

public function boot()
{
$this->bootLoaders();
Expand All @@ -23,29 +20,23 @@ public function boot()

protected function bootLoaders()
{
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'filament-map-picker');
$this->loadViewsFrom(__DIR__.'/../resources/views', 'filament-map-picker');
}

protected function bootPublishing()
{
if (!$this->app->runningInConsole()) {
if (! $this->app->runningInConsole()) {
return;
}

$this->publishes([
__DIR__ . '/../resources/views' => resource_path('views/vendor/filament-map-picker'),
__DIR__.'/../resources/views' => resource_path('views/vendor/filament-map-picker'),
], 'filament-map-picker-views');

}

public function configurePackage(Package $package): void
{
$package
->name(static::$name)
->hasCommands($this->getCommands());

if (file_exists($this->package->basePath('/../resources/views'))) {
$package->hasViews();
}
$package->name('filament-map-picker')->hasViews();
}
}

0 comments on commit bbc9923

Please sign in to comment.