classes/Models/Worker.php
public function lastHeartbeat()
    {
        $check = Cache::get($this->HEARTBEAT_WORKER_KEY);
        if (empty($check)) {
            return 'never';
        }

        return date(Library\Utils\Constants::COMMON_DATETIME.' T', $check);
    }
public function lastHeartbeat()
    {
        $check = Cache::get($this->HEARTBEAT_WORKER_KEY);
        if (empty($check)) {
            return 'never';
        }

        return date(Library\Utils\Constants::COMMON_DATETIME.' T', $check);
    }
public function lastHeartbeat ( ) { $ check = Cache :: get ( $ this -> HEARTBEAT_WORKER_KEY ) ; if ( empty ( $ check ) ) { return 'never' ; } return date ( Library \ Utils \ Constants :: COMMON_DATETIME . ' T' , $ check ) ; }
The last time the worker ran
The last time the worker ran