original_string: public function addArrayChild(&$parent, $arr)
      {
          $num = 0;
          if (! empty($arr) && ! empty($parent)) {
              foreach ($arr as $node) {
                  $this->appChild($parent, $node, '');
                  $num++;
              }
          }
  
          return $num;
      }
code: public function addArrayChild(&$parent, $arr)
      {
          $num = 0;
          if (! empty($arr) && ! empty($parent)) {
              foreach ($arr as $node) {
                  $this->appChild($parent, $node, '');
                  $num++;
              }
          }
  
          return $num;
      }
code_tokens: public function addArrayChild ( & $ parent , $ arr ) { $ num = 0 ; if ( ! empty ( $ arr ) && ! empty ( $ parent ) ) { foreach ( $ arr as $ node ) { $ this -> appChild ( $ parent , $ node , '' ) ; $ num ++ ; } } return $ num ; }
docstring: addArrayChild
  Adiciona a um DOMNode parent, outros elementos passados em um array de DOMElements.
  @param DOMElement $parent
  @param array $arr
  @return int
docstring_tokens: addArrayChild Adiciona a um DOMNode parent outros elementos passados em um array de DOMElements .