]> source.dussan.org Git - nextcloud-server.git/commitdiff
docs: correct return type for findAppInDirectories 46445/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Thu, 11 Jul 2024 10:05:14 +0000 (12:05 +0200)
committerDaniel <mail@danielkesselberg.de>
Thu, 11 Jul 2024 21:13:08 +0000 (23:13 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
lib/private/legacy/OC_App.php

index cb1a7b111c61e27dd7ee3b2ea6bb7442345d3060..3347e4a6ec2d24b3b375355395feb1e3f1f8b368 100644 (file)
@@ -255,11 +255,13 @@ class OC_App {
 
 
        /**
-        * search for an app in all app-directories
+        * Find the apps root for an app id.
+        *
+        * If multiple copies are found, the apps root the latest version is returned.
         *
         * @param string $appId
         * @param bool $ignoreCache ignore cache and rebuild it
-        * @return false|string
+        * @return false|array{path: string, url: string} the apps root shape
         */
        public static function findAppInDirectories(string $appId, bool $ignoreCache = false) {
                $sanitizedAppId = self::cleanAppId($appId);