From 2ffafa2f05d0c8de252abb3f88b184e798ecc749 Mon Sep 17 00:00:00 2001 From: lee-to Date: Sat, 12 Oct 2024 12:03:57 +0000 Subject: [PATCH] Fix styling --- src/Traits/Resource/ResourceModelPolicy.php | 2 +- src/Traits/Resource/ResourceModelQuery.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Traits/Resource/ResourceModelPolicy.php b/src/Traits/Resource/ResourceModelPolicy.php index 0a6909f47..1f8a91c57 100644 --- a/src/Traits/Resource/ResourceModelPolicy.php +++ b/src/Traits/Resource/ResourceModelPolicy.php @@ -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; diff --git a/src/Traits/Resource/ResourceModelQuery.php b/src/Traits/Resource/ResourceModelQuery.php index 31d69faff..bbf1d4228 100644 --- a/src/Traits/Resource/ResourceModelQuery.php +++ b/src/Traits/Resource/ResourceModelQuery.php @@ -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; }