private function prefixPaths (array $paths, string $prefix) : array
    {
        $result = [];

        foreach ($paths as $namespace => $path)
        {
            $result[$namespace] = "{$prefix}/" . trim($path, "/");
        }

        return $result;
    }
private function prefixPaths (array $paths, string $prefix) : array
    {
        $result = [];

        foreach ($paths as $namespace => $path)
        {
            $result[$namespace] = "{$prefix}/" . trim($path, "/");
        }

        return $result;
    }
private function prefixPaths ( array $ paths , string $ prefix ) : array { $ result = [ ] ; foreach ( $ paths as $ namespace => $ path ) { $ result [ $ namespace ] = "{$prefix}/" . trim ( $ path , "/" ) ; } return $ result ; }
Prefixes the given paths automatically with the given prefix

@param array<string, string>  $paths
@param string $prefix
@return array<string, string>
Prefixes the given paths automatically with the given prefix