Airship\Engine\Continuum::needsUpdate PHP Method

needsUpdate() public method

Do we need to run the update process?
public needsUpdate ( ) : boolean
return boolean
    public function needsUpdate() : bool
    {
        $config = State::instance();
        $path = \implode(DIRECTORY_SEPARATOR, [ROOT, 'tmp', 'last_update_check.txt']);
        if (\is_readable($path)) {
            $last = \file_get_contents($path);
            return time() - $last > $config->universal['auto-update']['check'];
        }
        return true;
    }