mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-01-11 15:38:40 +00:00
Static analysis fixes
This commit is contained in:
parent
cda801b6ab
commit
ab1b5293bf
|
|
@ -38,7 +38,17 @@ class Navigation
|
|||
*/
|
||||
public static function install(string $path = null, DatabasePool $dbPool = null) : void
|
||||
{
|
||||
$navData = \json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
||||
$navFile = \file_get_contents(__DIR__ . '/Navigation.install.json');
|
||||
|
||||
if ($navFile === false) {
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
$navData = \json_decode($navFile, true);
|
||||
|
||||
if ($navData === false) {
|
||||
throw new \Exception();
|
||||
}
|
||||
|
||||
$class = '\\Modules\\Navigation\\Admin\\Installer';
|
||||
/** @var $class \Modules\Navigation\Admin\Installer */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user