mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-03 18:51:53 +05:30
Code tidy
This commit is contained in:
parent
72b741d7c9
commit
15cef6ba16
@ -13,6 +13,7 @@ namespace League\OAuth2\Server\Exception;
|
|||||||
|
|
||||||
use League\OAuth2\Server\Util\RedirectUri;
|
use League\OAuth2\Server\Util\RedirectUri;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception class
|
* Exception class
|
||||||
@ -66,8 +67,8 @@ class OAuthException extends \Exception
|
|||||||
return RedirectUri::make(
|
return RedirectUri::make(
|
||||||
$this->redirectUri,
|
$this->redirectUri,
|
||||||
[
|
[
|
||||||
'error' => $this->errorType,
|
'error' => $this->errorType,
|
||||||
'message' => $this->getMessage(),
|
'message' => $this->getMessage(),
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -121,7 +122,7 @@ class OAuthException extends \Exception
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($authScheme !== null) {
|
if ($authScheme !== null) {
|
||||||
$headers[] = 'WWW-Authenticate: '.$authScheme.' realm=""';
|
$headers[] = 'WWW-Authenticate: ' . $authScheme . ' realm=""';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// @codeCoverageIgnoreEnd
|
// @codeCoverageIgnoreEnd
|
||||||
|
Loading…
Reference in New Issue
Block a user