summaryrefslogtreecommitdiffstats
path: root/lib/public/backgroundjob.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-02-19 07:04:37 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-02-19 07:04:37 +0100
commit1e321406ee2d973e937637ab090cbd83a6eb40cf (patch)
tree78eca74636ab68b3f52ebac9c013c55a1526bd43 /lib/public/backgroundjob.php
parent635b8f6b83ae37ac262c5f7a0bd40697824b9b67 (diff)
parentc6f4f85e27a10459422ab9789c894d13f0cd34c7 (diff)
downloadnextcloud-server-1e321406ee2d973e937637ab090cbd83a6eb40cf.tar.gz
nextcloud-server-1e321406ee2d973e937637ab090cbd83a6eb40cf.zip
Merge pull request #7114 from owncloud/scrutinizer_documentation_patches
polish documentation based on scrutinizer patches
Diffstat (limited to 'lib/public/backgroundjob.php')
-rw-r--r--lib/public/backgroundjob.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/public/backgroundjob.php b/lib/public/backgroundjob.php
index bcaf6e35454..bcd27c1d198 100644
--- a/lib/public/backgroundjob.php
+++ b/lib/public/backgroundjob.php
@@ -59,7 +59,7 @@ class BackgroundJob {
* sets the background jobs execution type
*
* @param string $type execution type
- * @return boolean
+ * @return boolean|null
*
* This method sets the execution type of the background jobs. Possible types
* are "none", "ajax", "webcron", "cron"
@@ -69,7 +69,7 @@ class BackgroundJob {
}
/**
- * @param \OC\BackgroundJob\Job|string $job
+ * @param string $job
* @param mixed $argument
*/
public static function registerJob($job, $argument = null) {
@@ -82,7 +82,7 @@ class BackgroundJob {
* creates a regular task
* @param string $klass class name
* @param string $method method name
- * @return true
+ * @return boolean|null
*/
public static function addRegularTask($klass, $method) {
if (!\OC::needUpgrade()) {
@@ -115,7 +115,7 @@ class BackgroundJob {
* @deprecated
* Gets one queued task
* @param int $id ID of the task
- * @return associative array
+ * @return \OC\BackgroundJob\Job|null array
*/
public static function findQueuedTask($id) {
$jobList = \OC::$server->getJobList();
@@ -170,7 +170,7 @@ class BackgroundJob {
* @param string $class class name
* @param string $method method name
* @param string $parameters all useful data as text
- * @return int id of task
+ * @return boolean id of task
*/
public static function addQueuedTask($app, $class, $method, $parameters) {
self::registerJob('OC\BackgroundJob\Legacy\QueuedJob', array('app' => $app, 'klass' => $class, 'method' => $method, 'parameters' => $parameters));
@@ -181,7 +181,7 @@ class BackgroundJob {
* @deprecated
* deletes a queued task
* @param int $id id of task
- * @return bool
+ * @return boolean|null
*
* Deletes a report
*/