original_string: public function getElementsByName($name)
      {
          $found = array();
          foreach ($this->getRecursiveIterator() as $element) {
              if ($element->getName() == $name) {
                  $found[] = $element;
              }
          }
          return $found;
      }
code: public function getElementsByName($name)
      {
          $found = array();
          foreach ($this->getRecursiveIterator() as $element) {
              if ($element->getName() == $name) {
                  $found[] = $element;
              }
          }
          return $found;
      }
code_tokens: public function getElementsByName ( $ name ) { $ found = array ( ) ; foreach ( $ this -> getRecursiveIterator ( ) as $ element ) { if ( $ element -> getName ( ) == $ name ) { $ found [ ] = $ element ; } } return $ found ; }
docstring: Returns an array of elements which name corresponds to element
  
  @param    string  Elements name to find
  @return   array
docstring_tokens: Returns an array of elements which name corresponds to element