protected function _get_github_api_data() {
		$response = $this->_request_github_api();
		if ( is_wp_error( $response ) ) {
			return $response;
		}

		$response_code = wp_remote_retrieve_response_code( $response );
		$body = json_decode( wp_remote_retrieve_body( $response ) );

		if ( 200 == $response_code ) {
			return $body;
		}

		return new \WP_Error(
			$response_code,
			'Inc2734_WP_GitHub_Theme_Updater error. ' . $body->message
		);
	}
protected function _get_github_api_data() {
		$response = $this->_request_github_api();
		if ( is_wp_error( $response ) ) {
			return $response;
		}

		$response_code = wp_remote_retrieve_response_code( $response );
		$body = json_decode( wp_remote_retrieve_body( $response ) );

		if ( 200 == $response_code ) {
			return $body;
		}

		return new \WP_Error(
			$response_code,
			'Inc2734_WP_GitHub_Theme_Updater error. ' . $body->message
		);
	}
protected function _get_github_api_data ( ) { $ response = $ this -> _request_github_api ( ) ; if ( is_wp_error ( $ response ) ) { return $ response ; } $ response_code = wp_remote_retrieve_response_code ( $ response ) ; $ body = json_decode ( wp_remote_retrieve_body ( $ response ) ) ; if ( 200 == $ response_code ) { return $ body ; } return new \ WP_Error ( $ response_code , 'Inc2734_WP_GitHub_Theme_Updater error. ' . $ body -> message ) ; }
Return the data from the GitHub API.

@return object|WP_Error
Return the data from the GitHub API .