diff options
author | Christian Raue <christian.raue@gmail.com> | 2014-07-23 22:27:56 +0400 |
---|---|---|
committer | Christian Raue <christian.raue@gmail.com> | 2014-07-23 22:27:56 +0400 |
commit | d9adcfe6169c6c10059a670f2ed984908eb4e105 (patch) | |
tree | 25cfca25851214c1b744a07e67e9c120adfd7513 /core/TaskScheduler.php | |
parent | 2788e1dad22533f3e0dbddbdd16c51251c4e130a (diff) |
removed lots of trailing whitespace
Diffstat (limited to 'core/TaskScheduler.php')
-rw-r--r-- | core/TaskScheduler.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/core/TaskScheduler.php b/core/TaskScheduler.php index d2ddec3238..602c1987a6 100644 --- a/core/TaskScheduler.php +++ b/core/TaskScheduler.php @@ -17,17 +17,17 @@ define('DEBUG_FORCE_SCHEDULED_TASKS', false); /** * Manages scheduled task execution. - * + * * A scheduled task is a callback that should be executed every so often (such as daily, * weekly, monthly, etc.). They are registered with **TaskScheduler** through the * {@hook TaskScheduler.getScheduledTasks} event. - * + * * Tasks are executed when the cron core:archive command is executed. - * + * * ### Examples - * + * * **Scheduling a task** - * + * * // event handler for TaskScheduler.getScheduledTasks event * public function getScheduledTasks(&$tasks) * { @@ -39,14 +39,14 @@ define('DEBUG_FORCE_SCHEDULED_TASKS', false); * ScheduledTask::LOWEST_PRIORITY * ); * } - * + * * **Executing all pending tasks** - * + * * $results = TaskScheduler::runTasks(); * $task1Result = $results[0]; * $task1Name = $task1Result['task']; * $task1Output = $task1Result['output']; - * + * * echo "Executed task '$task1Name'. Task output:\n$task1Output"; * * @method static \Piwik\TaskScheduler getInstance() @@ -69,7 +69,7 @@ class TaskScheduler extends Singleton * * @return array An array describing the results of scheduled task execution. Each element * in the array will have the following format: - * + * * ``` * array( * 'task' => 'task name', @@ -157,10 +157,10 @@ class TaskScheduler extends Singleton /** * Determines a task's scheduled time and persists it, overwriting the previous scheduled time. - * + * * Call this method if your task's scheduled time has changed due to, for example, an option that * was changed. - * + * * @param ScheduledTask $task Describes the scheduled task being rescheduled. * @api */ @@ -171,7 +171,7 @@ class TaskScheduler extends Singleton /** * Returns true if the TaskScheduler is currently running a scheduled task. - * + * * @return bool */ public static function isTaskBeingExecuted() |