Skip to content

Commit a5287f4

Browse files
cklei-carlygithub-actions[bot]
authored andcommitted
Fix styling
1 parent c925e1d commit a5287f4

6 files changed

Lines changed: 22 additions & 20 deletions

File tree

src/Base/Filament/Resources/Pages/BaseContentViewPage.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ protected function configureAction(Action $action): void
115115
}
116116
}
117117

118-
//region Preview
118+
// region Preview
119119
protected function getPreviewModalView(): ?string
120-
{
120+
{
121121
return 'handle by previewFactory';
122122
}
123123

@@ -155,9 +155,9 @@ protected function mutatePreviewModalData(array $data): array
155155

156156
return $data;
157157
}
158-
//endregion Preview
158+
// endregion Preview
159159

160-
//region Computed properties
160+
// region Computed properties
161161
#[Computed(persist: true, seconds: 7200)]
162162
public function contentDto()
163163
{
@@ -174,5 +174,5 @@ public function contentDto()
174174

175175
return null;
176176
}
177-
//endregion Computed properties
177+
// endregion Computed properties
178178
}

src/CmsPanelProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function configureCmsPanel(Panel $panel)
7777

7878
$panel = $panel
7979
->bootUsing(function () {
80-
80+
8181
$skipSuperAdminCheck = AuthHelper::skipSuperAdminCheck();
8282
if ($skipSuperAdminCheck == 'before') {
8383
Gate::before(function ($user, $ability) {

src/Content/DefaultPreviewProvider.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class DefaultPreviewProvider implements PreviewProviderInterface
1919
private const PREVIEW_DATA = [
2020
'isPeekPreviewModal' => true,
2121
];
22-
22+
2323
protected static $previewType = 'internalUrl'; // internalUrl, view
2424

2525
public function getPeekPreviewType(): string
@@ -34,7 +34,7 @@ public function configureFilamentPeekAsInternalLink(): void
3434
config()->set('filament-peek.internalPreviewUrl.enabled', true);
3535
}
3636
}
37-
37+
3838
public function renderContentPreview($documentType, $content, $template, $locale = null, $propertyData = [], $data = [])
3939
{
4040
[$htmlContent, $viewData] = $this->prepareContentPreviewContentAndData(
@@ -47,7 +47,7 @@ public function renderContentPreview($documentType, $content, $template, $locale
4747
);
4848

4949
return $this->renderBuilderPreview(
50-
Blade::render($htmlContent,$viewData, true)
50+
Blade::render($htmlContent, $viewData, true)
5151
);
5252
}
5353

@@ -98,6 +98,7 @@ protected function prepareContentPreviewContentAndData($documentType, $content,
9898
->danger()
9999
->seconds(60)
100100
->send();
101+
101102
return ['Content not found', []];
102103
}
103104

@@ -121,7 +122,7 @@ protected function prepareContentPreviewContentAndData($documentType, $content,
121122
return [$templateContent, array_merge([
122123
'locale' => $locale,
123124
'content' => $contentDTO,
124-
... self::PREVIEW_DATA,
125+
...self::PREVIEW_DATA,
125126
], $data)];
126127
}
127128

@@ -135,6 +136,7 @@ protected function prepareTemplatePreviewContentAndData($htmlContent, $documentT
135136
->danger()
136137
->seconds(60)
137138
->send();
139+
138140
return ['Document type not found', []];
139141
}
140142

@@ -143,7 +145,7 @@ protected function prepareTemplatePreviewContentAndData($htmlContent, $documentT
143145
$viewData = array_merge([
144146
'content' => $contentDTO,
145147
'locale' => $contentDTO->getLocale() ?? $locale,
146-
... self::PREVIEW_DATA,
148+
...self::PREVIEW_DATA,
147149
], $data);
148150

149151
if ($documentType->isDataType() && ! preg_match("/getComponentWithTheme\(\'(.*?)\'\)/", $templateContent)) {

src/Content/PreviewProviderInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ interface PreviewProviderInterface
1515
* @return string The preview type identifier ('view' or 'internalUrl').
1616
*/
1717
public function getPeekPreviewType(): string;
18-
18+
1919
public function configureFilamentPeekAsInternalLink(): void;
20-
20+
2121
/**
2222
* @param int|Model|DocumentType|null $documentType
2323
* @param string|int|Model|Content|array|null $content

src/Filament/Resources/DocumentTypeResource/RelationManagers/TemplatesRelationManager.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public static function getTitle(Model $ownerRecord, string $pageClass): string
152152
return __('inspirecms::resources/document-type.templates.label');
153153
}
154154

155-
//region Actions
155+
// region Actions
156156

157157
protected function configureCreateAction(CreateAction $action): void
158158
{
@@ -267,9 +267,9 @@ protected function configureViewOrEditAction(Tables\Actions\Action $action)
267267
});
268268
}
269269
}
270-
//endregion Actions
270+
// endregion Actions
271271

272-
//region Preview
272+
// region Preview
273273
protected function getBuilderPreviewView(string $builderName): ?string
274274
{
275275
return 'handle by previewFactory';
@@ -348,9 +348,9 @@ protected function getBuilderEditorTitle(): string
348348
{
349349
return __('inspirecms::resources/template.editor.title');
350350
}
351-
//endregion Preview
351+
// endregion Preview
352352

353-
//region Helpers
353+
// region Helpers
354354
protected function refreshPageAlerts(): void
355355
{
356356
$this->dispatch('refreshAlerts');
@@ -360,5 +360,5 @@ protected function assignDefaultTemplateIfNotSet($template): void
360360
{
361361
inspirecms_templates()->assignDefaultTemplateIfNotSet($this->getOwnerRecord(), $template);
362362
}
363-
//endregion Helpers
363+
// endregion Helpers
364364
}

src/InspireCmsServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ protected function customPlugins(): void
319319
if (InspireCmsConfig::get('system.override_plugins.spatie_permission', true)) {
320320
config()->set('permission.enable_wildcard_permission', true);
321321
}
322-
322+
323323
if (InspireCmsConfig::get('system.override_plugins.filament_peek', true)) {
324324
PreviewFactory::create()->configureFilamentPeekAsInternalLink();
325325
}

0 commit comments

Comments
 (0)