public static function path()
    {
        $url = '';

        // Get the rest of the URL
        if (!Arr::key('REQUEST_URI', $_SERVER)) {
            // Microsoft IIS doesn't set REQUEST_URI by default
            if ($queryString = Arr::key('QUERY_STRING', $_SERVER, true)) {
                $url .= '?' . $queryString;
            }
        } else {
            $url .= $_SERVER['REQUEST_URI'];
        }

        return $url ?: null;
    }
public static function path()
    {
        $url = '';

        // Get the rest of the URL
        if (!Arr::key('REQUEST_URI', $_SERVER)) {
            // Microsoft IIS doesn't set REQUEST_URI by default
            if ($queryString = Arr::key('QUERY_STRING', $_SERVER, true)) {
                $url .= '?' . $queryString;
            }
        } else {
            $url .= $_SERVER['REQUEST_URI'];
        }

        return $url ?: null;
    }
public static function path ( ) { $ url = '' ; // Get the rest of the URL if ( ! Arr :: key ( 'REQUEST_URI' , $ _SERVER ) ) { // Microsoft IIS doesn't set REQUEST_URI by default if ( $ queryString = Arr :: key ( 'QUERY_STRING' , $ _SERVER , true ) ) { $ url .= '?' . $ queryString ; } } else { $ url .= $ _SERVER [ 'REQUEST_URI' ] ; } return $ url ? : null ; }
Return the current path

@return string|null
@SuppressWarnings(PHPMD.Superglobals)
Return the current path