Skip to content

Commit 3093098

Browse files
stengithub-actions[bot]
authored andcommitted
Fix styling
1 parent d5c5efa commit 3093098

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

config/filament-flexible-content-block-pages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
'page_resource' => [
5050
\Statikbe\FilamentFlexibleContentBlockPages\Models\Page::class => [
5151
'enable_hero_call_to_actions' => true,
52-
'enable_author' => true,
52+
'enable_author' => true,
5353
'enable_parent' => true,
5454
'enable_undeletable' => true,
5555
],

src/FilamentFlexibleContentBlockPagesConfig.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -302,35 +302,31 @@ public function getSitemapCustomUrls(): array
302302
}
303303

304304
/**
305-
* @param class-string<Model> $modelClass
306-
* @return bool
305+
* @param class-string<Model> $modelClass
307306
*/
308307
public function isHeroCallToActionsEnabled(string $modelClass): bool
309308
{
310309
return $this->packageConfig("page_resource.{$modelClass}.enable_hero_call_to_actions", true);
311310
}
312311

313312
/**
314-
* @param class-string<Model> $modelClass
315-
* @return bool
313+
* @param class-string<Model> $modelClass
316314
*/
317315
public function isAuthorEnabled(string $modelClass): bool
318316
{
319317
return $this->packageConfig("page_resource.{$modelClass}.enable_author", true);
320318
}
321319

322320
/**
323-
* @param class-string<Model> $modelClass
324-
* @return bool
321+
* @param class-string<Model> $modelClass
325322
*/
326323
public function isParentEnabled(string $modelClass): bool
327324
{
328325
return $this->packageConfig("page_resource.{$modelClass}.enable_parent", true);
329326
}
330327

331328
/**
332-
* @param class-string<Model> $modelClass
333-
* @return bool
329+
* @param class-string<Model> $modelClass
334330
*/
335331
public function isUndeletableEnabled(string $modelClass): bool
336332
{

src/Models/Page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function isHomePage(): bool
8181

8282
public function isDeletable(): bool
8383
{
84-
if(!$this->hasAttribute('is_undeletable')){
84+
if (! $this->hasAttribute('is_undeletable')) {
8585
return true;
8686
}
8787

src/Resources/PageResource.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ protected static function getGeneralTabFields(): array
111111
HeroImageSection::create(true),
112112
];
113113

114-
if(FilamentFlexibleContentBlockPages::config()->isHeroCallToActionsEnabled(static::getModel())){
115-
$fields[] = new HeroCallToActionSection();
114+
if (FilamentFlexibleContentBlockPages::config()->isHeroCallToActionsEnabled(static::getModel())) {
115+
$fields[] = new HeroCallToActionSection;
116116
}
117117

118118
return $fields;
@@ -162,7 +162,7 @@ protected static function getAdvancedTabFields(): array
162162
->searchable(['title', 'code', 'slug', 'intro']);
163163
}
164164

165-
if (!empty($gridFields)) {
165+
if (! empty($gridFields)) {
166166
$fields[] = Grid::make()->schema($gridFields);
167167
}
168168

0 commit comments

Comments
 (0)