From 11415bea0bf02429fa3c48f0ee9047d91e822622 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 4 Sep 2012 12:28:28 +0100 Subject: [PATCH] PSR style if/else block --- src/Oauth2/Client/Token/Authorize.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Oauth2/Client/Token/Authorize.php b/src/Oauth2/Client/Token/Authorize.php index f29eea6c..27522eaf 100755 --- a/src/Oauth2/Client/Token/Authorize.php +++ b/src/Oauth2/Client/Token/Authorize.php @@ -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'];