public static function getDocRoot(): string
    {
        $result = '.';
        $root = Arr::key('DOCUMENT_ROOT', $_SERVER, true);

        if ($root) {
            $result = $root;
        }

        $result = FS::clean($result);
        $result = FS::real($result);

        if (!$result) {
            $result = FS::real('.'); // @codeCoverageIgnore
        }

        return $result;
    }
public static function getDocRoot(): string
    {
        $result = '.';
        $root = Arr::key('DOCUMENT_ROOT', $_SERVER, true);

        if ($root) {
            $result = $root;
        }

        $result = FS::clean($result);
        $result = FS::real($result);

        if (!$result) {
            $result = FS::real('.'); // @codeCoverageIgnore
        }

        return $result;
    }
public static function getDocRoot ( ) : string { $ result = '.' ; $ root = Arr :: key ( 'DOCUMENT_ROOT' , $ _SERVER , true ) ; if ( $ root ) { $ result = $ root ; } $ result = FS :: clean ( $ result ) ; $ result = FS :: real ( $ result ) ; if ( ! $ result ) { $ result = FS :: real ( '.' ) ; // @codeCoverageIgnore } return $ result ; }
Return document root

@SuppressWarnings(PHPMD.Superglobals)
@return string
Return document root