Skip to content

Commit 929439a

Browse files
author
antoine
committed
Merge remote-tracking branch 'origin/main'
2 parents 40e0e39 + 777b22d commit 929439a

File tree

257 files changed

+783
-944
lines changed

Some content is hidden

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

257 files changed

+783
-944
lines changed

demo/app/Console/Kernel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class Kernel extends ConsoleKernel
1010
/**
1111
* Define the application's command schedule.
1212
*
13-
* @param \Illuminate\Console\Scheduling\Schedule $schedule
1413
* @return void
1514
*/
1615
protected function schedule(Schedule $schedule)

demo/app/Http/Middleware/RedirectIfAuthenticated.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class RedirectIfAuthenticated
1212
/**
1313
* Handle an incoming request.
1414
*
15-
* @param \Illuminate\Http\Request $request
1615
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
1716
* @param string|null ...$guards
1817
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse

demo/app/Models/Post.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ class Post extends Model
2121
'title',
2222
'content',
2323
];
24+
2425
protected $guarded = [];
26+
2527
protected $casts = [
2628
'published_at' => 'datetime',
2729
'state' => PostState::class,

demo/app/Providers/AppServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class AppServiceProvider extends ServiceProvider
1111
public function register()
1212
{
1313
$this->app->register(SharpServiceProvider::class);
14-
// $this->app->bind(SharpUploadModel::class, Media::class)
14+
// $this->app->bind(SharpUploadModel::class, Media::class)
1515

1616
$this->app->bind(SharpViteComponent::class, function () {
1717
return new SharpViteComponent(hotFile: base_path('../resources/assets/dist/hot'));

demo/app/Sharp/Categories/CategoryForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function update($id, array $data)
4747
{
4848
$category = $id
4949
? Category::findOrFail($id)
50-
: new Category();
50+
: new Category;
5151

5252
$this->save($category, $data);
5353

demo/app/Sharp/Dashboard/DemoDashboard.php

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

4243
protected function buildWidgets(WidgetsContainer $widgetsContainer): void
@@ -213,7 +214,7 @@ protected function setPieGraphDataSet(): void
213214

214215
private static function nextColor(): string
215216
{
216-
if (static::$colorsIndex >= sizeof(static::$colors)) {
217+
if (static::$colorsIndex >= count(static::$colors)) {
217218
static::$colorsIndex = 0;
218219
}
219220

demo/app/Sharp/Entities/AuthorEntity.php

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

demo/app/Sharp/Entities/CategoryEntity.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
class CategoryEntity extends SharpEntity
1111
{
1212
protected ?string $list = CategoryList::class;
13+
1314
protected ?string $show = CategoryShow::class;
15+
1416
protected ?string $form = CategoryForm::class;
1517
}

demo/app/Sharp/Entities/PostBlockEntity.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
class PostBlockEntity extends SharpEntity
1313
{
1414
protected ?string $list = PostBlockList::class;
15+
1516
protected ?string $policy = PostBlockPolicy::class;
17+
1618
protected string $label = 'Block';
1719

1820
public function getMultiforms(): array

demo/app/Sharp/Entities/PostEntity.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
class PostEntity extends SharpEntity
1212
{
1313
protected ?string $list = PostList::class;
14+
1415
protected ?string $show = PostShow::class;
16+
1517
protected ?string $form = PostForm::class;
18+
1619
protected ?string $policy = PostPolicy::class;
1720
}

0 commit comments

Comments
 (0)