From 2fc15a8ea64385ecc2edbc74ba5ea618f1e203b2 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Wed, 31 Oct 2018 10:33:02 +0100 Subject: migrating to php7 Signed-off-by: Maxence Lange --- lib/AppInfo/Application.php | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'lib') diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 61122c6..76f89db 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -1,4 +1,7 @@ container = $this->getContainer(); $this->container->registerCapability(Capabilities::class); - - $this->registerHooks(); - } - - - /** - * Register Hooks - */ - public function registerHooks() { } @@ -88,7 +89,6 @@ class Application extends App { * @throws QueryException */ public function registerNavigation() { - /** @var ConfigService $configService */ $configService = $this->container->query(ConfigService::class); if ($configService->getAppValue(ConfigService::APP_NAVIGATION) !== '1') { @@ -101,7 +101,10 @@ class Application extends App { } - private function fullTextSearchNavigation() { + /** + * @return array + */ + private function fullTextSearchNavigation(): array { $urlGen = \OC::$server->getURLGenerator(); $navName = \OC::$server->getL10N(self::APP_NAME) ->t('Full text search'); @@ -116,9 +119,5 @@ class Application extends App { } - public function registerSettingsAdmin() { - // \OCP\App::registerAdmin(self::APP_NAME, 'lib/admin'); - } - } -- cgit v1.2.3