From 5a77da0c8a9edc013f2d7cef3ee55b7d4674521b Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Fri, 2 Feb 2024 16:14:33 -0800 Subject: [PATCH] fix-cs --- src/CkeConfig.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CkeConfig.php b/src/CkeConfig.php index 79c9d2d9..e650f567 100644 --- a/src/CkeConfig.php +++ b/src/CkeConfig.php @@ -11,7 +11,6 @@ use craft\base\Actionable; use craft\base\Chippable; use craft\base\Model; -use craft\enums\MenuItemType; use craft\helpers\Json; use Illuminate\Support\Collection; use yii\base\InvalidArgumentException; @@ -28,6 +27,7 @@ class CkeConfig extends Model implements Chippable, Actionable { public static function get(int|string $id): ?static { + /** @phpstan-ignore-next-line */ return Plugin::getInstance()->getCkeConfigs()->getByUid($id); } @@ -124,7 +124,7 @@ public function getActionMenuItems(): array $items = []; if ( - $this->id && + $this->uid && Craft::$app->getUser()->getIsAdmin() && Craft::$app->getConfig()->getGeneral()->allowAdminChanges ) {