private function decode_response( $git, $response ) {
		switch ( $git ) {
			case 'github':
			case 'gitlab':
				$response = isset( $response->content ) ? base64_decode( $response->content ) : $response;
				break;
			case 'bbserver':
				$response = isset( $response->lines ) ? $this->bbserver_recombine_response( $response ) : $response;
				break;
		}

		return $response;
	}
private function decode_response( $git, $response ) {
		switch ( $git ) {
			case 'github':
			case 'gitlab':
				$response = isset( $response->content ) ? base64_decode( $response->content ) : $response;
				break;
			case 'bbserver':
				$response = isset( $response->lines ) ? $this->bbserver_recombine_response( $response ) : $response;
				break;
		}

		return $response;
	}
private function decode_response ( $ git , $ response ) { switch ( $ git ) { case 'github' : case 'gitlab' : $ response = isset ( $ response -> content ) ? base64_decode ( $ response -> content ) : $ response ; break ; case 'bbserver' : $ response = isset ( $ response -> lines ) ? $ this -> bbserver_recombine_response ( $ response ) : $ response ; break ; } return $ response ; }
Decode API responses that are base64 encoded.

@param string $git (github|bitbucket|gitlab|gitea)
@param mixed  $response API response.
@return mixed $response
Decode API responses that are base64 encoded .