From 2b8cd4fe98fa3511dfa776985fc7137f9ac4679c Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 29 Mar 2022 16:41:16 +0200 Subject: [PATCH] phpstan and phpcs fixes --- Admin/Install/Navigation.install.json | 2 +- Admin/Installer.php | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 42cfa69..336cd4e 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -10,7 +10,7 @@ "icon": null, "order": 1, "from": "Dashboard", - "permission": { "permission": 2, "type": null, "element": null }, + "permission": { "permission": 2, "category": null, "element": null }, "parent": 1006901001, "children": [] } diff --git a/Admin/Installer.php b/Admin/Installer.php index ecb8bae..4b1d36d 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -56,6 +56,13 @@ final class Installer extends InstallerAbstract self::installDefault(); } + /** + * Install default dashboard + * + * @return void + * + * @since 1.0.0 + */ private static function installDefault() : void { $board = new DashboardBoard(); @@ -106,12 +113,12 @@ final class Installer extends InstallerAbstract protected string $appName = 'Api'; }; - $apiApp->dbPool = $app->dbPool; - $apiApp->orgId = $app->orgId; + $apiApp->dbPool = $app->dbPool; + $apiApp->orgId = $app->orgId; $apiApp->accountManager = $app->accountManager; - $apiApp->appSettings = $app->appSettings; - $apiApp->moduleManager = $app->moduleManager; - $apiApp->eventManager = $app->eventManager; + $apiApp->appSettings = $app->appSettings; + $apiApp->moduleManager = $app->moduleManager; + $apiApp->eventManager = $app->eventManager; foreach ($dashboardData as $dashboard) { switch ($dashboard['type']) { @@ -129,7 +136,7 @@ final class Installer extends InstallerAbstract * Create board component. * * @param ApplicationAbstract $app Application - * @param array $data Type info + * @param array $data Type info * * @return DashboardComponent *