fix: 🚨 resolve phpcs errors
This commit is contained in:
parent
a9201415c9
commit
9bb18429bb
3 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -365,8 +365,8 @@
|
|||
<li class="nav-item">
|
||||
<a class="nav-link @if (request()->routeIs('bo.stickies.*')) active @endif" data-bs-toggle="tooltip"
|
||||
href="{{ route('bo.stickies.index') }}"
|
||||
title="{{ __('crud.helpers.list_all', ['model' => Str::of(trans_choice('models.classes.sticky', \INF))]) }}">
|
||||
{{ Str::of(trans_choice('models.classes.sticky', \INF))->ucfirst() }}
|
||||
title="{{ __('crud.helpers.list_all', ['model' => trans_choice('models.classes.sticky', \INF)]) }}">
|
||||
{{ Str::ucfirst(trans_choice('models.classes.sticky', \INF)) }}
|
||||
</a>
|
||||
</li>
|
||||
@endcan
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue