PSR style if/else block

This commit is contained in:
Alex Bilbie 2012-09-04 12:28:28 +01:00
parent eb5010a3f8
commit 11415bea0b

View File

@ -28,14 +28,14 @@ class AuthorizeToken extends Oauth2\Client\Token
*/ */
public function __construct(array $options) public function __construct(array $options)
{ {
if ( ! isset($options['code'])) if ( ! isset($options['code'])) {
{
throw new Exception('Required option not passed: 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'); throw new Exception('Required option not passed: redirect_uri');
} }
$this->code = $options['code']; $this->code = $options['code'];