mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-01-28 07:38:41 +00:00
Static analysis fixes
This commit is contained in:
parent
75284cea6a
commit
9ff8e90f9c
|
|
@ -31,7 +31,17 @@ class Navigation
|
|||
*/
|
||||
public static function install(string $path, DatabasePool $dbPool)
|
||||
{
|
||||
$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