Fragen\GitHub_Updater\GitHub_API::get_remote_tag PHP Метод

get_remote_tag() публичный Метод

Get remote info for tags.
public get_remote_tag ( ) : boolean
Результат boolean
    public function get_remote_tag()
    {
        $repo_type = $this->return_repo_type();
        $response = isset($this->response['tags']) ? $this->response['tags'] : false;
        if (!$response) {
            $response = $this->api('/repos/:owner/:repo/tags');
            if (!$response) {
                $response = new \stdClass();
                $response->message = 'No tags found';
            }
            if ($response) {
                $response = $this->parse_tag_response($response);
                $this->set_transient('tags', $response);
            }
        }
        if ($this->validate_response($response)) {
            return false;
        }
        $this->parse_tags($response, $repo_type);
        return true;
    }