From 6a41ae5254c512a0ab847201201d3d99ba541e98 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 4 Sep 2012 12:29:52 +0100 Subject: [PATCH] PSR style if block --- src/Oauth2/Client/Token/Access.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Oauth2/Client/Token/Access.php b/src/Oauth2/Client/Token/Access.php index 8fcc8aae..a1cdb6bb 100755 --- a/src/Oauth2/Client/Token/Access.php +++ b/src/Oauth2/Client/Token/Access.php @@ -41,15 +41,9 @@ class AccessToken extends Oauth2\Client\Token */ public function __construct(array $options = null) { - if ( ! isset($options['access_token'])) - { + if ( ! isset($options['access_token'])) { throw new Exception('Required option not passed: access_token'.PHP_EOL.print_r($options, true)); } - - // if ( ! isset($options['expires_in']) and ! isset($options['expires'])) - // { - // throw new Exception('We do not know when this access_token will expire'); - // } $this->accessToken = $options['access_token'];