Skip to content

Commit d20730c

Browse files
SlimDeluxegithub-actions[bot]
authored andcommitted
style: fix code style
1 parent 53a1041 commit d20730c

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

database/migrations/2025_07_22_082135_create_sections_table.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
return new class extends Migration {
7+
return new class extends Migration
8+
{
89
public function up(): void
910
{
1011
Schema::create('cms_sections', function (Blueprint $table) {
@@ -16,9 +17,9 @@ public function up(): void
1617
/** @var \Illuminate\Database\Eloquent\Model $tenant */
1718
$tenant = new $tenantClass;
1819
$table->foreignId(config('eclipse-cms.tenancy.foreign_key'))
19-
->constrained($tenant->getTable(), $tenant->getKeyName())
20-
->cascadeOnUpdate()
21-
->cascadeOnDelete();
20+
->constrained($tenant->getTable(), $tenant->getKeyName())
21+
->cascadeOnUpdate()
22+
->cascadeOnDelete();
2223
}
2324

2425
$table->string('name');

database/migrations/2025_07_22_134424_create_pages_table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
return new class extends Migration {
7+
return new class extends Migration
8+
{
89
public function up(): void
910
{
1011
Schema::create('cms_pages', function (Blueprint $table) {

src/Admin/Filament/Resources/PageResource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ public static function form(Form $form): Form
6161

6262
Placeholder::make('created_at')
6363
->label('Created Date')
64-
->content(fn(?Page $record): string => $record?->created_at?->diffForHumans() ?? '-'),
64+
->content(fn (?Page $record): string => $record?->created_at?->diffForHumans() ?? '-'),
6565

6666
Placeholder::make('updated_at')
6767
->label('Last Modified Date')
68-
->content(fn(?Page $record): string => $record?->updated_at?->diffForHumans() ?? '-'),
68+
->content(fn (?Page $record): string => $record?->updated_at?->diffForHumans() ?? '-'),
6969
]);
7070
}
7171

src/Models/Section.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@ protected static function newFactory(): SectionFactory
3636
{
3737
return SectionFactory::new();
3838
}
39-
4039
}

0 commit comments

Comments
 (0)