private function getConfigDepth($config) {
        $total_depth = 1;

        foreach ($config as $data) {
            if (is_array($data)) {
                $depth = $this->getConfigDepth($data) + 1;

                if ($depth > $total_depth) {
                    $total_depth = $depth;
                }
            }
        }

        return $total_depth;
    }
private function getConfigDepth($config) {
        $total_depth = 1;

        foreach ($config as $data) {
            if (is_array($data)) {
                $depth = $this->getConfigDepth($data) + 1;

                if ($depth > $total_depth) {
                    $total_depth = $depth;
                }
            }
        }

        return $total_depth;
    }
private function getConfigDepth ( $ config ) { $ total_depth = 1 ; foreach ( $ config as $ data ) { if ( is_array ( $ data ) ) { $ depth = $ this -> getConfigDepth ( $ data ) + 1 ; if ( $ depth > $ total_depth ) { $ total_depth = $ depth ; } } } return $ total_depth ; }
Determine the depth of this configuration so we know how to pad the outputted table of data.
@param  array $config
@return integer
Determine the depth of this configuration so we know how to pad the outputted table of data .