Skip to content

Commit

Permalink
fix-cs
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 3, 2024
1 parent b94747d commit 5a77da0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CkeConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}

Expand Down Expand Up @@ -124,7 +124,7 @@ public function getActionMenuItems(): array
$items = [];

if (
$this->id &&
$this->uid &&
Craft::$app->getUser()->getIsAdmin() &&
Craft::$app->getConfig()->getGeneral()->allowAdminChanges
) {
Expand Down

0 comments on commit 5a77da0

Please sign in to comment.