Skip to content

Commit 53fb088

Browse files
aguingandgithub-actions[bot]
authored andcommitted
CS fix
1 parent 4b2aeda commit 53fb088

File tree

212 files changed

+456
-826
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+456
-826
lines changed

demo/app/Models/Category.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
class Category extends Model
1010
{
1111
use HasFactory;
12-
1312
protected $guarded = [];
1413

1514
public function posts(): BelongsToMany

demo/app/Models/Media.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88
class Media extends SharpUploadModel
99
{
1010
use HasFactory;
11-
1211
protected $table = 'medias';
1312
}

demo/app/Models/Post.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@
1616
class Post extends Model
1717
{
1818
use HasFactory, HasTranslations;
19-
2019
public array $translatable = [
2120
'title',
2221
'content',
2322
];
24-
2523
protected $guarded = [];
26-
2724
protected $casts = [
2825
'published_at' => 'datetime',
2926
'state' => PostState::class,

demo/app/Models/PostAttachment.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
class PostAttachment extends Model
1111
{
1212
use HasFactory;
13-
1413
protected $guarded = [];
1514

1615
public function post(): BelongsTo

demo/app/Models/PostBlock.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
class PostBlock extends Model
1111
{
1212
use HasFactory;
13-
1413
protected $guarded = [];
1514

1615
public function post(): BelongsTo

demo/app/Models/User.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@
1111
class User extends Authenticatable
1212
{
1313
use HasFactory, Notifiable;
14-
1514
protected $guarded = [];
16-
1715
protected $hidden = [
1816
'password',
1917
'remember_token',
2018
];
21-
2219
protected $casts = [
2320
'email_verified_at' => 'datetime',
2421
];

demo/app/Sharp/Categories/CategoryForm.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
class CategoryForm extends SharpForm
1414
{
1515
use WithSharpFormEloquentUpdater;
16-
1716
protected ?string $formValidatorClass = CategoryValidator::class;
1817

1918
public function buildFormFields(FieldsContainer $formFields): void
@@ -47,7 +46,7 @@ public function update($id, array $data)
4746
{
4847
$category = $id
4948
? Category::findOrFail($id)
50-
: new Category;
49+
: new Category();
5150

5251
$this->save($category, $data);
5352

demo/app/Sharp/Categories/CategoryList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function getEntityCommands(): ?array
4141
protected function getFilters(): ?array
4242
{
4343
return [
44-
new class extends CheckFilter
44+
new class() extends CheckFilter
4545
{
4646
public function buildFilterConfig(): void
4747
{

demo/app/Sharp/Dashboard/DemoDashboard.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class DemoDashboard extends SharpDashboard
3737
'#78350F',
3838
'#9CA3AF',
3939
];
40-
4140
private static int $colorsIndex = 0;
4241

4342
protected function buildWidgets(WidgetsContainer $widgetsContainer): void

demo/app/Sharp/Entities/AuthorEntity.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@
88
class AuthorEntity extends SharpEntity
99
{
1010
protected ?string $list = AuthorList::class;
11-
1211
protected array $prohibitedActions = ['view', 'update', 'delete', 'create'];
1312
}

0 commit comments

Comments
 (0)