summaryrefslogtreecommitdiffstats
path: root/lib/private/app.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-04-17 16:08:15 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-04-17 16:08:15 +0200
commita2a0eb370b9b8473300e4b687b2bf2e176074f94 (patch)
tree043458efab8994a0267bae97b5616ff517b5169d /lib/private/app.php
parentfe654ece99adadb1e4e81c31c6afecd038a2f14b (diff)
parentcc8a4511fea5108cd088d49a27cb34a59d7d59e5 (diff)
downloadnextcloud-server-a2a0eb370b9b8473300e4b687b2bf2e176074f94.tar.gz
nextcloud-server-a2a0eb370b9b8473300e4b687b2bf2e176074f94.zip
Merge pull request #8222 from owncloud/type-hinting
Type hinting fixes
Diffstat (limited to 'lib/private/app.php')
-rw-r--r--lib/private/app.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 58bf67c1d47..c5fcad8f005 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -459,9 +459,11 @@ class OC_App{
return false;
}
/**
- * Get the directory for the given app.
- * If the app is defined in multiple directories, the first one is taken. (false if not found)
- */
+ * Get the directory for the given app.
+ * If the app is defined in multiple directories, the first one is taken. (false if not found)
+ * @param string $appid
+ * @return string|false
+ */
public static function getAppPath($appid) {
if( ($dir = self::findAppInDirectories($appid)) != false) {
return $dir['path'].'/'.$appid;
@@ -470,9 +472,11 @@ class OC_App{
}
/**
- * Get the path for the given app on the access
- * If the app is defined in multiple directories, the first one is taken. (false if not found)
- */
+ * Get the path for the given app on the access
+ * If the app is defined in multiple directories, the first one is taken. (false if not found)
+ * @param string $appid
+ * @return string|false
+ */
public static function getAppWebPath($appid) {
if( ($dir = self::findAppInDirectories($appid)) != false) {
return OC::$WEBROOT.$dir['url'].'/'.$appid;
@@ -482,6 +486,7 @@ class OC_App{
/**
* get the last version of the app, either from appinfo/version or from appinfo/info.xml
+ * @param string $appid
* @return string
*/
public static function getAppVersion($appid) {