original_string: protected function add_result($result) {
          if (is_array($result)) {
              // Adding the result to the oldest parent.
              if ($this->get_parent()) {
                  $parent = $this->get_grandparent();
                  $parent->add_result($result);
              } else {
                  $this->results = array_merge($this->results, $result);
              }
          }
      }
code: protected function add_result($result) {
          if (is_array($result)) {
              // Adding the result to the oldest parent.
              if ($this->get_parent()) {
                  $parent = $this->get_grandparent();
                  $parent->add_result($result);
              } else {
                  $this->results = array_merge($this->results, $result);
              }
          }
      }
code_tokens: protected function add_result ( $ result ) { if ( is_array ( $ result ) ) { // Adding the result to the oldest parent. if ( $ this -> get_parent ( ) ) { $ parent = $ this -> get_grandparent ( ) ; $ parent -> add_result ( $ result ) ; } else { $ this -> results = array_merge ( $ this -> results , $ result ) ; } } }
docstring: Saves the results to an array
  
  @param array $result associative array
  @return void
docstring_tokens: Saves the results to an array