]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Nav.php
Merge pull request #11913 from tobiasd/2022.09-CHANGELOG
[friendica.git] / src / Content / Nav.php
index c30a157067f5a03b5428f85c336ac6bdb38478dd..77f068863aa3ca2a29bf19e12ac2f98408d9528e 100644 (file)
@@ -62,7 +62,7 @@ class Nav
         *
         * @param string $item
         */
-       public static function setSelected($item)
+       public static function setSelected(string $item)
        {
                self::$selected[$item] = 'selected';
        }
@@ -74,7 +74,7 @@ class Nav
         * @return string
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public static function build(App $a)
+       public static function build(App $a): string
        {
                // Placeholder div for popup panel
                $nav = '<div id="panel" style="display: none;"></div>';
@@ -106,7 +106,7 @@ class Nav
         *
         * @return array
         */
-       public static function getAppMenu()
+       public static function getAppMenu(): array
        {
                if (is_null(self::$app_menu)) {
                        self::populateAppMenu();
@@ -117,6 +117,8 @@ class Nav
 
        /**
         * Fills the apps static variable with apps that require a menu
+        *
+        * @return void
         */
        private static function populateAppMenu()
        {