src/config/Config.php
private function dumpNode(array $node, array $values, &$maxKeyLength) {
        $result = [];

        foreach ($values as $subkey => $value) {
            if ($subkey==trim($subkey) && (strlen($subkey) || sizeof($values) > 1)) {
                $sSubkey = $subkey;
            }
            else {
                $sSubkey = '"'.$subkey.'"';
            }
            $key          = join('.', \array_merge($node, $sSubkey=='' ? [] : [$sSubkey]));
            $maxKeyLength = max(strlen($key), $maxKeyLength);

            if (is_array($value)) {
                $result += $this->{__FUNCTION__}(\array_merge($node, [$subkey]), $value, $maxKeyLength);
            }
            else {
                $result[$key] = $value;
            }
        }
        return $result;
    }
private function dumpNode(array $node, array $values, &$maxKeyLength) {
        $result = [];

        foreach ($values as $subkey => $value) {
            if ($subkey==trim($subkey) && (strlen($subkey) || sizeof($values) > 1)) {
                $sSubkey = $subkey;
            }
            else {
                $sSubkey = '"'.$subkey.'"';
            }
            $key          = join('.', \array_merge($node, $sSubkey=='' ? [] : [$sSubkey]));
            $maxKeyLength = max(strlen($key), $maxKeyLength);

            if (is_array($value)) {
                $result += $this->{__FUNCTION__}(\array_merge($node, [$subkey]), $value, $maxKeyLength);
            }
            else {
                $result[$key] = $value;
            }
        }
        return $result;
    }
private function dumpNode ( array $ node , array $ values , & $ maxKeyLength ) { $ result = [ ] ; foreach ( $ values as $ subkey => $ value ) { if ( $ subkey == trim ( $ subkey ) && ( strlen ( $ subkey ) || sizeof ( $ values ) > 1 ) ) { $ sSubkey = $ subkey ; } else { $ sSubkey = '"' . $ subkey . '"' ; } $ key = join ( '.' , \ array_merge ( $ node , $ sSubkey == '' ? [ ] : [ $ sSubkey ] ) ) ; $ maxKeyLength = max ( strlen ( $ key ) , $ maxKeyLength ) ; if ( is_array ( $ value ) ) { $ result += $ this -> { __FUNCTION__ } ( \ array_merge ( $ node , [ $ subkey ] ) , $ value , $ maxKeyLength ) ; } else { $ result [ $ key ] = $ value ; } } return $ result ; }
Dump the tree structure of a node into a flat format and return it.

@param  string[] $node         [in ]
@param  array    $values       [in ]
@param  int      $maxKeyLength [out]

@return array
Dump the tree structure of a node into a flat format and return it .