private function addNamespacePaths(& $list, $namespace, $paths)
    {
        $namespace = $namespace === '' ? '' : trim($namespace, '\\') . '\\';

        if (!isset($list[$namespace])) {
            $list[$namespace] = [];
        }

        if (is_array($paths)) {
            $list[$namespace] = array_merge($list[$namespace], $paths);
        } else {
            $list[$namespace][] = $paths;
        }
    }
private function addNamespacePaths(& $list, $namespace, $paths)
    {
        $namespace = $namespace === '' ? '' : trim($namespace, '\\') . '\\';

        if (!isset($list[$namespace])) {
            $list[$namespace] = [];
        }

        if (is_array($paths)) {
            $list[$namespace] = array_merge($list[$namespace], $paths);
        } else {
            $list[$namespace][] = $paths;
        }
    }
private function addNamespacePaths ( & $ list , $ namespace , $ paths ) { $ namespace = $ namespace === '' ? '' : trim ( $ namespace , '\\' ) . '\\' ; if ( ! isset ( $ list [ $ namespace ] ) ) { $ list [ $ namespace ] = [ ] ; } if ( is_array ( $ paths ) ) { $ list [ $ namespace ] = array_merge ( $ list [ $ namespace ] , $ paths ) ; } else { $ list [ $ namespace ] [ ] = $ paths ; } }
Canonizes the namespace and adds the paths to that specific namespace.
@param array $list List of paths to modify
@param string $namespace Namespace for the paths
@param string[] $paths List of paths for the namespace
Canonizes the namespace and adds the paths to that specific namespace .