@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | public function index(HTTPRequest $request) |
127 | 127 | { |
128 | 128 | // Show more debug info with ?debug=1 |
129 | - $isDebug = (bool)$request->getVar('debug'); |
|
129 | + $isDebug = (bool) $request->getVar('debug'); |
|
130 | 130 | |
131 | 131 | // Check each task |
132 | 132 | $tasks = ClassInfo::implementorsOf(CronTask::class); |
@@ -152,10 +152,10 @@ discard block |
||
152 | 152 | // Update status of this task prior to execution in case of interruption |
153 | 153 | CronTaskStatus::update_status(get_class($task), $isDue); |
154 | 154 | if ($isDue) { |
155 | - $this->output(get_class($task) . ' will start now.'); |
|
155 | + $this->output(get_class($task).' will start now.'); |
|
156 | 156 | $task->process(); |
157 | 157 | } else { |
158 | - $this->output(get_class($task) . ' will run at ' . $cron->getNextRunDate()->format('Y-m-d H:i:s') . '.', 2); |
|
158 | + $this->output(get_class($task).' will run at '.$cron->getNextRunDate()->format('Y-m-d H:i:s').'.', 2); |
|
159 | 159 | } |
160 | 160 | } |
161 | 161 | |
@@ -171,9 +171,9 @@ discard block |
||
171 | 171 | } |
172 | 172 | $timestamp = DBDatetime::now()->Rfc2822(); |
173 | 173 | if (Director::is_cli()) { |
174 | - echo $timestamp . ' - ' . $message . PHP_EOL; |
|
174 | + echo $timestamp.' - '.$message.PHP_EOL; |
|
175 | 175 | } else { |
176 | - echo Convert::raw2xml($timestamp . ' - ' . $message) . '<br />' . PHP_EOL; |
|
176 | + echo Convert::raw2xml($timestamp.' - '.$message).'<br />'.PHP_EOL; |
|
177 | 177 | } |
178 | 178 | } |
179 | 179 | } |
@@ -113,7 +113,7 @@ |
||
113 | 113 | public function testDefaultQuietFlagOutput() |
114 | 114 | { |
115 | 115 | $this->loginWithPermission('ADMIN'); |
116 | - $this->expectOutputRegex('#' . DBDatetime::now()->Format(DBDate::ISO_DATE) . '#'); |
|
116 | + $this->expectOutputRegex('#'.DBDatetime::now()->Format(DBDate::ISO_DATE).'#'); |
|
117 | 117 | $this->get('dev/cron?debug=1'); |
118 | 118 | } |
119 | 119 |