@@ -62,12 +62,10 @@ |
||
| 62 | 62 | if(in_array(self::SCOPE_V2_IDENTITY, $scopes)){ |
| 63 | 63 | $endpoint = '/v2/identity'; |
| 64 | 64 | $params = ['fields[user]' => 'about,created,email,first_name,full_name,image_url,last_name,social_connections,thumb_url,url,vanity']; |
| 65 | - } |
|
| 66 | - elseif(in_array(self::SCOPE_V1_USERS, $scopes)){ |
|
| 65 | + } elseif(in_array(self::SCOPE_V1_USERS, $scopes)){ |
|
| 67 | 66 | $endpoint = '/api/current_user'; |
| 68 | 67 | $params = []; |
| 69 | - } |
|
| 70 | - else{ |
|
| 68 | + } else{ |
|
| 71 | 69 | throw new ProviderException('invalid scopes for the identity endpoint'); |
| 72 | 70 | } |
| 73 | 71 | |