Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-08-01 15:42:35 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-08-07 02:55:22 +0400
commit1ca1e1d4d175fbd8750323112050456bf2a8fdfb (patch)
tree484033b1a11a640d439b5fa228661c3822546f3d /lib/private/ocsclient.php
parent5b88d3d3fc52478265549053839d810dcc76e803 (diff)
fix return documentation
Diffstat (limited to 'lib/private/ocsclient.php')
-rw-r--r--lib/private/ocsclient.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/private/ocsclient.php b/lib/private/ocsclient.php
index e1db0995eab..e4cce6b2260 100644
--- a/lib/private/ocsclient.php
+++ b/lib/private/ocsclient.php
@@ -59,7 +59,7 @@ class OC_OCSClient{
/**
* Get all the categories from the OCS server
- * @return array an array of category ids
+ * @return array|null an array of category ids or null
* @note returns NULL if config value appstoreenabled is set to false
* This function returns a list of all the application categories on the OCS server
*/
@@ -92,7 +92,7 @@ class OC_OCSClient{
/**
* Get all the applications from the OCS server
- * @return array an array of application data
+ * @return array|null an array of application data or null
*
* This function returns a list of all the applications on the OCS server
* @param array|string $categories
@@ -150,9 +150,9 @@ class OC_OCSClient{
/**
* Get an the applications from the OCS server
* @param string $id
- * @return array an array of application data
+ * @return array|null an array of application data or null
*
- * This function returns an applications from the OCS server
+ * This function returns an applications from the OCS server
*/
public static function getApplication($id) {
if(OC_Config::getValue('appstoreenabled', true)==false) {
@@ -196,7 +196,7 @@ class OC_OCSClient{
/**
* Get the download url for an application from the OCS server
- * @return array an array of application data
+ * @return array|null an array of application data or null
*
* This function returns an download url for an applications from the OCS server
* @param string $id
@@ -227,6 +227,4 @@ class OC_OCSClient{
return $app;
}
-
-
}