diff --git a/src/Checks/Checks/QueueCheck.php b/src/Checks/Checks/QueueCheck.php index 771b6206..eebd5b9e 100644 --- a/src/Checks/Checks/QueueCheck.php +++ b/src/Checks/Checks/QueueCheck.php @@ -87,7 +87,7 @@ public function run(): Result if (version_compare($carbonVersion, '3.0.0', '<')) { - $minutesAgo +=1; + $minutesAgo += 1; } if ($minutesAgo > $this->failWhenTestJobTakesLongerThanMinutes) { diff --git a/src/Checks/Checks/ScheduleCheck.php b/src/Checks/Checks/ScheduleCheck.php index 9f7ff8d0..e6684bac 100644 --- a/src/Checks/Checks/ScheduleCheck.php +++ b/src/Checks/Checks/ScheduleCheck.php @@ -64,14 +64,9 @@ public function run(): Result if (version_compare($carbonVersion, '3.0.0', '<')) { - $minutesAgo +=1; + $minutesAgo += 1; } - - - - - if ($minutesAgo > $this->heartbeatMaxAgeInMinutes) { return $result->failed("The last run of the schedule was more than {$minutesAgo} minutes ago."); }