public static function getAuth()
    {
        $result = null;
        if ($user = Arr::key('PHP_AUTH_USER', $_SERVER, true)) {
            $result .= $user;

            if ($password = Arr::key('PHP_AUTH_PW', $_SERVER, true)) {
                $result .= ':' . $password;
            }

            $result .= '@';
        }

        return $result;
    }
public static function getAuth()
    {
        $result = null;
        if ($user = Arr::key('PHP_AUTH_USER', $_SERVER, true)) {
            $result .= $user;

            if ($password = Arr::key('PHP_AUTH_PW', $_SERVER, true)) {
                $result .= ':' . $password;
            }

            $result .= '@';
        }

        return $result;
    }
public static function getAuth ( ) { $ result = null ; if ( $ user = Arr :: key ( 'PHP_AUTH_USER' , $ _SERVER , true ) ) { $ result .= $ user ; if ( $ password = Arr :: key ( 'PHP_AUTH_PW' , $ _SERVER , true ) ) { $ result .= ':' . $ password ; } $ result .= '@' ; } return $ result ; }
Get current auth info

@return null|string

@SuppressWarnings(PHPMD.Superglobals)
Get current auth info