protected function populateCommonDocs(string $padding, string $commondocs) : string
    {
        $output = '';

        if (is_dir($commondocs)) {
            $h = opendir($commondocs);
            while ($dir = readdir($h)) {
                $folder = $commondocs . DIRECTORY_SEPARATOR . $dir;
                if ($dir !== '.' && $dir !== '..' && is_dir($folder)) {
                    $output .= "\n"
                            . $padding . "Alias /$dir \"$folder\"\n"
                            . $padding . "<Directory \"$folder\">\n"
                            . $padding . "        AllowOverride All\n"
                            . $padding . "        Require all granted\n"
                            . $padding . "</Directory>\n"
                        ;
                }
            }
            closedir($h);
        }

        return $output;
    }