aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2024-07-11 12:05:14 +0200
committerDaniel <mail@danielkesselberg.de>2024-07-11 23:13:08 +0200
commit6983310ec0e042d31ef7ef1e457aa15f971967d2 (patch)
treee51c49f4d9433469f7da0f7acfb2ca38a3be91e4 /lib/private
parent64701f8a803039a15f193edbd0c07ec101b427ca (diff)
downloadnextcloud-server-6983310ec0e042d31ef7ef1e457aa15f971967d2.tar.gz
nextcloud-server-6983310ec0e042d31ef7ef1e457aa15f971967d2.zip
docs: correct return type for findAppInDirectories
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/legacy/OC_App.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php
index cb1a7b111c6..3347e4a6ec2 100644
--- a/lib/private/legacy/OC_App.php
+++ b/lib/private/legacy/OC_App.php
@@ -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);