diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-02-15 10:38:25 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-02-15 10:38:25 +0100 |
commit | e694b30a4f1e1cce6cbca0fcbbfeceee8a16c8f6 (patch) | |
tree | 5e082f3521ed0dd11d720d9330e05dea21808b35 /lib/private/NavigationManager.php | |
parent | 5a23b35ddbbefcb308915e3fb088e3beaf1f8be5 (diff) | |
download | nextcloud-server-e694b30a4f1e1cce6cbca0fcbbfeceee8a16c8f6.tar.gz nextcloud-server-e694b30a4f1e1cce6cbca0fcbbfeceee8a16c8f6.zip |
Update phpDoc comments and add more type hinting
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/NavigationManager.php')
-rw-r--r-- | lib/private/NavigationManager.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index 8d62ebc8ed8..279c899c5fa 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -104,9 +104,10 @@ class NavigationManager implements INavigationManager { } /** - * returns all the added Menu entries - * @param string $type - * @return array an array of the added entries + * Get a list of navigation entries + * + * @param string $type type of the navigation entries + * @return array */ public function getAll(string $type = 'link'): array { $this->init(); @@ -128,10 +129,10 @@ class NavigationManager implements INavigationManager { /** * Sort navigation entries by order, name and set active flag * - * @param $list - * @return mixed + * @param array $list + * @return array */ - private function proceedNavigation($list) { + private function proceedNavigation(array $list): array { usort($list, function($a, $b) { if (isset($a['order']) && isset($b['order'])) { return ($a['order'] < $b['order']) ? -1 : 1; |