Skip to content

Commit

Permalink
fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Bak committed Aug 21, 2024
2 parents c2e8209 + 3414e25 commit 3ff1a33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
8 changes: 4 additions & 4 deletions app/Livewire/Admin/Roles/CreateRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public static function modalMaxWidth(): string

public function mount()
{
abort_if(!auth()->check(), 403);
abort_if(!auth()
abort_if(! auth()->check(), 403);
abort_if(! auth()
->user()
->hasPermissionTo('create roles'), 403);
}
Expand All @@ -43,9 +43,9 @@ public function create(): void
]);

$permissions = collect($this->rolePermissions)
->map(function ($permission) use ($role) {
->map(function ($permission) {
// convert string to int
return (int)$permission;
return (int) $permission;
})
->toArray();

Expand Down
8 changes: 3 additions & 5 deletions app/Rules/ValidCoupon.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public function __construct()
/**
* Determine if the validation rule passes.
*
* @param string $attribute
* @param mixed $value
* @return bool
* @param string $attribute
* @param mixed $value
*
* @throws ApiErrorException
*/
public function passes($attribute, $value): bool
Expand All @@ -51,8 +51,6 @@ public function passes($attribute, $value): bool

/**
* Get the validation error message.
*
* @return string
*/
public function message(): string
{
Expand Down
3 changes: 0 additions & 3 deletions app/View/Components/CardForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\View\Components;

use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

Expand All @@ -20,8 +19,6 @@ public function __construct()

/**
* Get the view / contents that represent the component.
*
* @return View
*/
public function render(): View
{
Expand Down

0 comments on commit 3ff1a33

Please sign in to comment.