mirror of
https://github.com/Karaka-Management/oms-Dashboard.git
synced 2026-02-16 10:28:40 +00:00
phpstan and phpcs fixes
This commit is contained in:
parent
0ccd43775d
commit
2b8cd4fe98
|
|
@ -10,7 +10,7 @@
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 1,
|
"order": 1,
|
||||||
"from": "Dashboard",
|
"from": "Dashboard",
|
||||||
"permission": { "permission": 2, "type": null, "element": null },
|
"permission": { "permission": 2, "category": null, "element": null },
|
||||||
"parent": 1006901001,
|
"parent": 1006901001,
|
||||||
"children": []
|
"children": []
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,13 @@ final class Installer extends InstallerAbstract
|
||||||
self::installDefault();
|
self::installDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Install default dashboard
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
private static function installDefault() : void
|
private static function installDefault() : void
|
||||||
{
|
{
|
||||||
$board = new DashboardBoard();
|
$board = new DashboardBoard();
|
||||||
|
|
@ -106,12 +113,12 @@ final class Installer extends InstallerAbstract
|
||||||
protected string $appName = 'Api';
|
protected string $appName = 'Api';
|
||||||
};
|
};
|
||||||
|
|
||||||
$apiApp->dbPool = $app->dbPool;
|
$apiApp->dbPool = $app->dbPool;
|
||||||
$apiApp->orgId = $app->orgId;
|
$apiApp->orgId = $app->orgId;
|
||||||
$apiApp->accountManager = $app->accountManager;
|
$apiApp->accountManager = $app->accountManager;
|
||||||
$apiApp->appSettings = $app->appSettings;
|
$apiApp->appSettings = $app->appSettings;
|
||||||
$apiApp->moduleManager = $app->moduleManager;
|
$apiApp->moduleManager = $app->moduleManager;
|
||||||
$apiApp->eventManager = $app->eventManager;
|
$apiApp->eventManager = $app->eventManager;
|
||||||
|
|
||||||
foreach ($dashboardData as $dashboard) {
|
foreach ($dashboardData as $dashboard) {
|
||||||
switch ($dashboard['type']) {
|
switch ($dashboard['type']) {
|
||||||
|
|
@ -129,7 +136,7 @@ final class Installer extends InstallerAbstract
|
||||||
* Create board component.
|
* Create board component.
|
||||||
*
|
*
|
||||||
* @param ApplicationAbstract $app Application
|
* @param ApplicationAbstract $app Application
|
||||||
* @param array $data Type info
|
* @param array $data Type info
|
||||||
*
|
*
|
||||||
* @return DashboardComponent
|
* @return DashboardComponent
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user