private function parseNodeData(\DOMNode $node, $path)
    {
        $nodeData = [];

        foreach ($node->childNodes as $childNode) {
            $childrenData = $this->convertNode($childNode, ($path ? $path . '/' : '') . $childNode->nodeName);
            if ($childrenData === null) {
                continue;
            }
            $nodeData = $this->mergeChildData($nodeData, $childrenData);
        }

        if (is_array($nodeData) && empty($nodeData)) {
            $nodeData = null;
        }

        return $nodeData;
    }
private function parseNodeData(\DOMNode $node, $path)
    {
        $nodeData = [];

        foreach ($node->childNodes as $childNode) {
            $childrenData = $this->convertNode($childNode, ($path ? $path . '/' : '') . $childNode->nodeName);
            if ($childrenData === null) {
                continue;
            }
            $nodeData = $this->mergeChildData($nodeData, $childrenData);
        }

        if (is_array($nodeData) && empty($nodeData)) {
            $nodeData = null;
        }

        return $nodeData;
    }
private function parseNodeData ( \ DOMNode $ node , $ path ) { $ nodeData = [ ] ; foreach ( $ node -> childNodes as $ childNode ) { $ childrenData = $ this -> convertNode ( $ childNode , ( $ path ? $ path . '/' : '' ) . $ childNode -> nodeName ) ; if ( $ childrenData === null ) { continue ; } $ nodeData = $ this -> mergeChildData ( $ nodeData , $ childrenData ) ; } if ( is_array ( $ nodeData ) && empty ( $ nodeData ) ) { $ nodeData = null ; } return $ nodeData ; }
Convert node onto array

@param \DOMNode $node The Configuration DOM node to parse
@param string   $path The path for DOM navigation

@return array|string|null
Convert node onto array