mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
PSR style if/else block
This commit is contained in:
parent
eb5010a3f8
commit
11415bea0b
@ -28,14 +28,14 @@ class AuthorizeToken extends Oauth2\Client\Token
|
||||
*/
|
||||
public function __construct(array $options)
|
||||
{
|
||||
if ( ! isset($options['code']))
|
||||
{
|
||||
throw new Exception('Required option not passed: code');
|
||||
}
|
||||
if ( ! isset($options['code'])) {
|
||||
|
||||
throw new Exception('Required option not passed: code');
|
||||
|
||||
} elseif ( ! isset($options['redirect_uri'])) {
|
||||
|
||||
elseif ( ! isset($options['redirect_uri']))
|
||||
{
|
||||
throw new Exception('Required option not passed: redirect_uri');
|
||||
|
||||
}
|
||||
|
||||
$this->code = $options['code'];
|
||||
|
Loading…
Reference in New Issue
Block a user