Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to authored and github-actions[bot] committed Oct 12, 2024
1 parent a1c827c commit 2ffafa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Traits/Resource/ResourceModelPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function can(string $ability): bool

$checkCustomRules = moonshine()
->authorizationRules()
->every(fn($rule) => $rule($this, $user, $ability, $item));
->every(fn ($rule) => $rule($this, $user, $ability, $item));

if (! $checkCustomRules) {
return false;
Expand Down
6 changes: 3 additions & 3 deletions src/Traits/Resource/ResourceModelQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ public function setItemID(int|string|null $itemID): static
public function getItemID(): int|string|null
{
// empty string is the value that stops the logic
if($this->itemID === '') {
if ($this->itemID === '') {
return null;
}

if(!blank($this->itemID)) {
if (! blank($this->itemID)) {
return $this->itemID;
}

if($this->stopGettingItemFromUrl) {
if ($this->stopGettingItemFromUrl) {
return null;
}

Expand Down

0 comments on commit 2ffafa2

Please sign in to comment.