Completed
Pull Request — master (#19)
by Stig
05:00 queued 02:52
created
code/controllers/CronTaskController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         // Try load the CronExpression from the default composer vendor dirs
39 39
         if (!class_exists('Cron\CronExpression')) {
40 40
             $ds = DIRECTORY_SEPARATOR;
41
-            require_once CRONTASK_MODULE_PATH . $ds . 'vendor' . $ds . 'autoload.php';
41
+            require_once CRONTASK_MODULE_PATH.$ds.'vendor'.$ds.'autoload.php';
42 42
             if (!class_exists('Cron\CronExpression')) {
43 43
                 throw new Exception('CronExpression library isn\'t loaded, please see crontask README');
44 44
             }
@@ -113,10 +113,10 @@  discard block
 block discarded – undo
113 113
         // Update status of this task prior to execution in case of interruption
114 114
         CronTaskStatus::update_status(get_class($task), $isDue);
115 115
         if ($isDue) {
116
-            $this->output(get_class($task) . ' will start now.');
116
+            $this->output(get_class($task).' will start now.');
117 117
             $task->process();
118 118
         } else {
119
-            $this->output(get_class($task) . ' will run at ' . $cron->getNextRunDate()->format('Y-m-d H:i:s') . '.');
119
+            $this->output(get_class($task).' will run at '.$cron->getNextRunDate()->format('Y-m-d H:i:s').'.');
120 120
         }
121 121
     }
122 122
 
@@ -131,9 +131,9 @@  discard block
 block discarded – undo
131 131
             return;
132 132
         }
133 133
         if (Director::is_cli()) {
134
-            echo $message . PHP_EOL;
134
+            echo $message.PHP_EOL;
135 135
         } else {
136
-            echo Convert::raw2xml($message) . '<br />' . PHP_EOL;
136
+            echo Convert::raw2xml($message).'<br />'.PHP_EOL;
137 137
         }
138 138
     }
139 139
 }
Please login to merge, or discard this patch.