private function addPath(& $list, $path, $namespace)
    {
        if ($namespace !== null) {
            $paths = [$namespace => $path];
        } else {
            $paths = is_array($path) ? $path : ['' => $path];
        }

        foreach ($paths as $ns => $directories) {
            $this->addNamespacePaths($list, ltrim($ns, '0..9'), $directories);
        }
    }
private function addPath(& $list, $path, $namespace)
    {
        if ($namespace !== null) {
            $paths = [$namespace => $path];
        } else {
            $paths = is_array($path) ? $path : ['' => $path];
        }

        foreach ($paths as $ns => $directories) {
            $this->addNamespacePaths($list, ltrim($ns, '0..9'), $directories);
        }
    }
private function addPath ( & $ list , $ path , $ namespace ) { if ( $ namespace !== null ) { $ paths = [ $ namespace => $ path ] ; } else { $ paths = is_array ( $ path ) ? $ path : [ '' => $ path ] ; } foreach ( $ paths as $ ns => $ directories ) { $ this -> addNamespacePaths ( $ list , ltrim ( $ ns , '0..9' ) , $ directories ) ; } }
Adds the paths to the list of paths according to the provided parameters.
@param array $list List of paths to modify
@param string|array $path Single path or array of paths
@param string|null $namespace The namespace definition
Adds the paths to the list of paths according to the provided parameters .