mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-01 16:33:07 +05:30
PSR style if block
This commit is contained in:
parent
dd5fc7dc24
commit
6a41ae5254
@ -41,16 +41,10 @@ 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'];
|
||||
|
||||
// Some providers (not many) give the uid here, so lets take it
|
||||
|
Loading…
Reference in New Issue
Block a user