public function isCheckRequired()
    {
        if ($this->expired === false) {
            return false;
        }

        if ($this->cacheFile->exists()) {
            $expiryTimestamp = (int) $this->cacheFile->read();
        } else {
            $expiryTimestamp = 0;
        }
        $ts = Carbon::createFromTimestamp($expiryTimestamp + self::CHECK_INTERVAL);

        return $this->expired = $ts->isPast();
    }
public function isCheckRequired()
    {
        if ($this->expired === false) {
            return false;
        }

        if ($this->cacheFile->exists()) {
            $expiryTimestamp = (int) $this->cacheFile->read();
        } else {
            $expiryTimestamp = 0;
        }
        $ts = Carbon::createFromTimestamp($expiryTimestamp + self::CHECK_INTERVAL);

        return $this->expired = $ts->isPast();
    }
public function isCheckRequired ( ) { if ( $ this -> expired === false ) { return false ; } if ( $ this -> cacheFile -> exists ( ) ) { $ expiryTimestamp = ( int ) $ this -> cacheFile -> read ( ) ; } else { $ expiryTimestamp = 0 ; } $ ts = Carbon :: createFromTimestamp ( $ expiryTimestamp + self :: CHECK_INTERVAL ) ; return $ this -> expired = $ ts -> isPast ( ) ; }
Check if we have determined that we need to do a database check.

@return bool
Check if we have determined that we need to do a database check .