From 5a7d94e0f46d14c0e6ce85127f1d2093f14afa80 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 12 Feb 2021 18:01:52 +0100 Subject: [PATCH] impl. more static translations --- Admin/Installer.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Admin/Installer.php b/Admin/Installer.php index 8990d09..132a509 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -36,19 +36,19 @@ final class Installer extends InstallerAbstract * @param DatabasePool $dbPool Database pool * @param array $data Module info * - * @return void + * @return array * * @throws PathException This exception is thrown if the Navigation install file couldn't be found * @throws \Exception This exception is thrown if the Navigation install file is invalid json * * @since 1.0.0 */ - public static function installExternal(DatabasePool $dbPool, array $data) : void + public static function installExternal(DatabasePool $dbPool, array $data) : array { try { $dbPool->get()->con->query('select 1 from `nav`'); } catch (\Exception $e) { - return; // @codeCoverageIgnore + return []; // @codeCoverageIgnore } $navFile = \file_get_contents($data['path'] ?? ''); @@ -64,6 +64,8 @@ final class Installer extends InstallerAbstract foreach ($navData as $link) { self::installLink($dbPool, $link); } + + return []; } /**