From 9bb18429bb58e1e801b0438f71688660f9693f7f Mon Sep 17 00:00:00 2001 From: Corentin Huet Date: Thu, 12 Mar 2026 16:43:06 +0100 Subject: [PATCH] fix: :rotating_light: resolve phpcs errors --- app/Http/Controllers/Bo/StickyController.php | 2 +- app/Models/Sticky.php | 4 ++-- resources/views/bo/layouts/nav-list.blade.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/Bo/StickyController.php b/app/Http/Controllers/Bo/StickyController.php index 79c08da..cbef777 100644 --- a/app/Http/Controllers/Bo/StickyController.php +++ b/app/Http/Controllers/Bo/StickyController.php @@ -105,7 +105,7 @@ class StickyController extends Controller * Update the specified resource in storage. * * @param \App\Http\Requests\Bo\Stickies\UpdateStickyRequest $request - * @param \App\Models\Sticky $sticky + * @param \App\Models\Sticky $sticky * @return \Illuminate\Http\RedirectResponse */ public function update(UpdateStickyRequest $request, Sticky $sticky): \Illuminate\Http\RedirectResponse diff --git a/app/Models/Sticky.php b/app/Models/Sticky.php index b603cb2..b5d76d5 100644 --- a/app/Models/Sticky.php +++ b/app/Models/Sticky.php @@ -51,14 +51,14 @@ class Sticky extends Model */ protected static function booted(): void { - static::creating(function (self $model) { + static::creating(function () { // * Prevent user elevation privileges throw_if( auth('backend')->user() and auth('backend')->user()->role->value() < RoleEnum::conceptor->value(), AuthorizationException::class ); }); - static::deleting(function (self $model) { + static::deleting(function () { // // * Prevent user elevation privileges throw_if( auth('backend')->user() and auth('backend')->user()->role->value() < RoleEnum::conceptor->value(), diff --git a/resources/views/bo/layouts/nav-list.blade.php b/resources/views/bo/layouts/nav-list.blade.php index e07a190..aba1375 100644 --- a/resources/views/bo/layouts/nav-list.blade.php +++ b/resources/views/bo/layouts/nav-list.blade.php @@ -365,8 +365,8 @@ @endcan