original_string: public function add_result($result) {
          if (!is_array($result)) {
              throw new coding_exception('Associative array is expected as a parameter of add_result()');
          }
          $this->results = array_merge($this->results, $result);
      }
code: public function add_result($result) {
          if (!is_array($result)) {
              throw new coding_exception('Associative array is expected as a parameter of add_result()');
          }
          $this->results = array_merge($this->results, $result);
      }
code_tokens: public function add_result ( $ result ) { if ( ! is_array ( $ result ) ) { throw new coding_exception ( 'Associative array is expected as a parameter of add_result()' ) ; } $ this -> results = array_merge ( $ this -> results , $ result ) ; }
docstring: Add the passed info to the plan results
  
  At the moment we expect an associative array structure to be merged into
  the current results. In the future, some sort of base_result class may
  be introduced.
  
  @param array $result associative array describing a result of a task/step
docstring_tokens: Add the passed info to the plan results