Skip to content

Commit 48f8ca4

Browse files
author
Anton Evers
committed
The variable name $ts is more clear if it is named $timestamp
1 parent 8f24e0f commit 48f8ca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ public function saveSchedule($jobCode, $cronExpression, $timeInterval, $exists)
469469
$currentTime = $this->timezone->scopeTimeStamp();
470470
$timeAhead = $currentTime + $timeInterval;
471471
for ($time = $currentTime; $time < $timeAhead; $time += self::SECONDS_IN_MINUTE) {
472-
$ts = strftime('%Y-%m-%d %H:%M:00', $time);
473-
if (!empty($exists[$jobCode . '/' . $ts])) {
472+
$timestamp = strftime('%Y-%m-%d %H:%M:00', $time);
473+
if (!empty($exists[$jobCode . '/' . $timestamp])) {
474474
// already scheduled
475475
continue;
476476
}

0 commit comments

Comments
 (0)