protected function mergeMethods($nodeData)/*# : array */
    {
        // no merge
        if (empty($nodeData) || isset($nodeData[0])) {
            return (array) $nodeData;
        }

        // in sections
        $result = [];
        foreach ($nodeData as $data) {
            $result = array_merge($result, $data);
        }
        return $result;
    }
protected function mergeMethods($nodeData)/*# : array */
    {
        // no merge
        if (empty($nodeData) || isset($nodeData[0])) {
            return (array) $nodeData;
        }

        // in sections
        $result = [];
        foreach ($nodeData as $data) {
            $result = array_merge($result, $data);
        }
        return $result;
    }
protected function mergeMethods ( $ nodeData ) /*# : array */ { // no merge if ( empty ( $ nodeData ) || isset ( $ nodeData [ 0 ] ) ) { return ( array ) $ nodeData ; } // in sections $ result = [ ] ; foreach ( $ nodeData as $ data ) { $ result = array_merge ( $ result , $ data ) ; } return $ result ; }
Merge different sections of a node

convert
`['section1' => [[1], [2]], 'section2' => [[3], [4]]]`

to
`[[1], [2], [3], [4]]`

@param  array|null $nodeData
@return array
@access protected
Merge different sections of a node