]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/handler/tasks/class_TaskHandler.php
Changed all true/false to TRUE/FALSE respectively as PHP constants are better than...
[hub.git] / application / hub / main / handler / tasks / class_TaskHandler.php
index 271a0a9c6713abd7ca3da1796ba499d3cc8b9555..f1a92b1e6235af6f0cffdf5d2ec8b326fc54821e 100644 (file)
@@ -99,7 +99,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
                        // Should we start now?
                        if ($diff < $currentTask['task_startup_delay']) {
                                // Skip this silently
-                               return false;
+                               return;
                        } // END - if
 
                        // Launch the task and mark it as updated
@@ -122,7 +122,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
                        } // END - if
 
                        // Skip this silently
-                       return false;
+                       return;
                } // END - if
 
                // Set last activity
@@ -186,11 +186,11 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
                        // Identifier for the generateHash() method
                        'id'                  => $taskName,
                        // Whether the task is started
-                       'task_started'        => false,
+                       'task_started'        => FALSE,
                        // Whether the task is paused (not yet implemented)
-                       'task_paused'         => false,
+                       'task_paused'         => FALSE,
                        // Whether the task can be paused (not yet implemented)
-                       'task_pauseable'      => true,
+                       'task_pauseable'      => TRUE,
                        // Timestamp of registration
                        'task_registered'     => $this->getMilliTime(),
                        // Last activity timestamp