phpbb\cron\task\text_reparser\reparser::should_run PHP Method

should_run() public method

public should_run ( )
    public function should_run()
    {
        if (!empty($this->config['reparse_lock'])) {
            $last_run = explode(' ', $this->config['reparse_lock']);
            if ($last_run[0] + 3600 >= time()) {
                return false;
            }
        }
        if ($this->config[$this->reparser_name . '_cron_interval']) {
            return $this->config[$this->reparser_name . '_last_cron'] < time() - $this->config[$this->reparser_name . '_cron_interval'];
        }
        return false;
    }