public function get_repo_meta()
{
$response = isset($this->response['meta']) ? $this->response['meta'] : false;
if (!$response) {
self::$method = 'meta';
$project = isset($this->response['project']) ? $this->response['project'] : false;
// exit if transient is empty
if (!$project) {
return false;
}
$response = $this->type->repo === $project->path ? $project : false;
if ($response) {
$response = $this->parse_meta_response($response);
$this->set_transient('meta', $response);
$this->set_transient('project', null);
}
}
if ($this->validate_response($response)) {
return false;
}
$this->type->repo_meta = $response;
$this->add_meta_repo_object();
return true;
}