Completed
Push — master ( 99614a...18655e )
by Maxence
14s queued 10s
created
lib/Service/RunningService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 	 * @return bool
200 200
 	 */
201 201
 	public function isAlreadyRunning(): bool {
202
-		$ttl = (int) $this->configService->getAppValue(ConfigService::TICK_TTL);
202
+		$ttl = (int)$this->configService->getAppValue(ConfigService::TICK_TTL);
203 203
 		$ticks = $this->tickRequest->getTicksByStatus('run');
204 204
 
205 205
 		$isAlreadyRunning = false;
@@ -238,18 +238,18 @@  discard block
 block discarded – undo
238 238
 		$preAction = $tick->getAction();
239 239
 
240 240
 		if ($preAction !== '') {
241
-			$preActionTotal = $tick->getInfoFloat($preAction . 'Total', 0);
242
-			$preActionStart = $tick->getInfoFloat($preAction . 'Init', 0);
241
+			$preActionTotal = $tick->getInfoFloat($preAction.'Total', 0);
242
+			$preActionStart = $tick->getInfoFloat($preAction.'Init', 0);
243 243
 
244 244
 			if ($preActionStart > 0) {
245 245
 
246 246
 				$preActionTotal += ($now - $preActionStart);
247
-				$tick->setInfoFloat($preAction . 'Total', $preActionTotal);
248
-				$tick->unsetInfo($preAction . 'Init');
247
+				$tick->setInfoFloat($preAction.'Total', $preActionTotal);
248
+				$tick->unsetInfo($preAction.'Init');
249 249
 			}
250 250
 		}
251 251
 		$tick->setAction($action)
252
-			 ->setInfoFloat($action . 'Init', $now);
252
+			 ->setInfoFloat($action.'Init', $now);
253 253
 	}
254 254
 
255 255
 
Please login to merge, or discard this patch.