Fix styling

This commit is contained in:
zepfietje
2023-04-26 07:59:16 +00:00
committed by github-actions[bot]
parent 1b7c272eb7
commit 2bd9cd6ffd

View File

@@ -60,25 +60,25 @@ class SkeletonServiceProvider extends PackageServiceProvider
public function packageRegistered(): void public function packageRegistered(): void
{ {
// Facade Registration // Facade Registration
$this->app->bind('skeleton', function (): Skeleton { $this->app->bind('skeleton', function (): Skeleton {
return new Skeleton(); return new Skeleton();
}); });
// Context Registration // Context Registration
$this->app->resolving('skeleton', function () { $this->app->resolving('skeleton', function () {
foreach ($this->getContexts() as $context) { foreach ($this->getContexts() as $context) {
Filament::registerContext($context); Filament::registerContext($context);
} }
}); });
// Asset Registration // Asset Registration
$this->app->resolving(AssetManager::class, function () { $this->app->resolving(AssetManager::class, function () {
FilamentAsset::register($this->getAssets(), $this->getAssetPackage()); FilamentAsset::register($this->getAssets(), $this->getAssetPackage());
FilamentAsset::registerScriptData($this->getScriptData(), $this->getAssetPackage()); FilamentAsset::registerScriptData($this->getScriptData(), $this->getAssetPackage());
}); });
// Icon Registration // Icon Registration
$this->app->resolving(IconManager::class, function () { $this->app->resolving(IconManager::class, function () {
FilamentIcon::register($this->getIcons()); FilamentIcon::register($this->getIcons());
}); });
@@ -88,7 +88,7 @@ class SkeletonServiceProvider extends PackageServiceProvider
{ {
$this->registerMacros(); $this->registerMacros();
// Handle Stubs // Handle Stubs
if ($this->app->runningInConsole()) { if ($this->app->runningInConsole()) {
foreach (app(Filesystem::class)->files(__DIR__.'/../stubs/') as $file) { foreach (app(Filesystem::class)->files(__DIR__.'/../stubs/') as $file) {
$this->publishes([ $this->publishes([
@@ -97,7 +97,7 @@ class SkeletonServiceProvider extends PackageServiceProvider
} }
} }
// Testing // Testing
TestableLivewire::mixin(new TestsSkeleton()); TestableLivewire::mixin(new TestsSkeleton());
} }