protected function bbserver_recombine_response( $response ) {
		if ( $this->validate_response( $response ) ) {
			return $response;
		}
		$remote_info_file = '';
		if ( isset( $response->lines ) ) {
			foreach ( (array) $response->lines as $line ) {
				$remote_info_file .= $line->text . "\n";
			}
		}

		return $remote_info_file;
	}
protected function bbserver_recombine_response( $response ) {
		if ( $this->validate_response( $response ) ) {
			return $response;
		}
		$remote_info_file = '';
		if ( isset( $response->lines ) ) {
			foreach ( (array) $response->lines as $line ) {
				$remote_info_file .= $line->text . "\n";
			}
		}

		return $remote_info_file;
	}
protected function bbserver_recombine_response ( $ response ) { if ( $ this -> validate_response ( $ response ) ) { return $ response ; } $ remote_info_file = '' ; if ( isset ( $ response -> lines ) ) { foreach ( ( array ) $ response -> lines as $ line ) { $ remote_info_file .= $ line -> text . "\n" ; } } return $ remote_info_file ; }
Combines separate text lines from API response into one string with \n line endings.
Code relying on raw text can now parse it.

@param string|\stdClass|mixed $response

@return string Combined lines of text returned by API
Combines separate text lines from API response into one string with \ n line endings . Code relying on raw text can now parse it .