src/Parser.php
private function parseSetResultNodes(DOMElement $child, $name, array &$result = null)
    {
        if (!(is_array($result[$name]) && $this->valueIsList($result[$name]))) {
            return false;
        }

        $value = static::getPhpValue($child, null, $this);

        if (is_array($value) && $this->valueIsList($value)) {
            return $result[$name] = array_merge($result[$name], $value);
        }

        return $result[$name][] = $value;
    }
private function parseSetResultNodes(DOMElement $child, $name, array &$result = null)
    {
        if (!(is_array($result[$name]) && $this->valueIsList($result[$name]))) {
            return false;
        }

        $value = static::getPhpValue($child, null, $this);

        if (is_array($value) && $this->valueIsList($value)) {
            return $result[$name] = array_merge($result[$name], $value);
        }

        return $result[$name][] = $value;
    }
private function parseSetResultNodes ( DOMElement $ child , $ name , array & $ result = null ) { if ( ! ( is_array ( $ result [ $ name ] ) && $ this -> valueIsList ( $ result [ $ name ] ) ) ) { return false ; } $ value = static :: getPhpValue ( $ child , null , $ this ) ; if ( is_array ( $ value ) && $ this -> valueIsList ( $ value ) ) { return $ result [ $ name ] = array_merge ( $ result [ $ name ] , $ value ) ; } return $ result [ $ name ] [ ] = $ value ; }
Parse a `DOMElement` if a result key is set.

@param DOMElement $child
@param string $name
@param array $result

@return mixed|bool the result, else `false` if no result.
Parse a DOMElement if a result key is set .