original_string: public function add_highlight_content($response) {
          if (!isset($response->highlighting)) {
              // There is no highlighting to add.
              return;
          }
  
          $highlightedobject = $response->highlighting;
          foreach ($response->response->docs as $doc) {
              $x = $doc->id;
              $highlighteddoc = $highlightedobject->$x;
              $this->merge_highlight_field_values($doc, $highlighteddoc);
          }
      }
code: public function add_highlight_content($response) {
          if (!isset($response->highlighting)) {
              // There is no highlighting to add.
              return;
          }
  
          $highlightedobject = $response->highlighting;
          foreach ($response->response->docs as $doc) {
              $x = $doc->id;
              $highlighteddoc = $highlightedobject->$x;
              $this->merge_highlight_field_values($doc, $highlighteddoc);
          }
      }
code_tokens: public function add_highlight_content ( $ response ) { if ( ! isset ( $ response -> highlighting ) ) { // There is no highlighting to add. return ; } $ highlightedobject = $ response -> highlighting ; foreach ( $ response -> response -> docs as $ doc ) { $ x = $ doc -> id ; $ highlighteddoc = $ highlightedobject -> $ x ; $ this -> merge_highlight_field_values ( $ doc , $ highlighteddoc ) ; } }
docstring: Finds the key common to both highlighing and docs array returned from response.
  @param object $response containing results.
docstring_tokens: Finds the key common to both highlighing and docs array returned from response .