|
@@ -29,7 +29,9 @@ |
|
|
block discarded – undo |
|
29
|
29
|
* @return string Authorize URL |
|
30
|
30
|
*/ |
|
31
|
31
|
public function getAuthorizeUrl(string $scope, string $redirectUri='urn:ietf:wg:oauth:2.0:oob', string $responseType='code', string $accessType='offline'):string { |
|
32
|
|
- if ($scope == null) throw new Exception("GMail scope cannot be null"); |
|
|
32
|
+ if ($scope == null) { |
|
|
33
|
+ throw new Exception("GMail scope cannot be null"); |
|
|
34
|
+ } |
|
33
|
35
|
return self::AUTH_URL."?client_id=$this->clientId&redirect_uri=$redirectUri&scope=$scope&response_type=$responseType&access_type=$accessType"; |
|
34
|
36
|
} |
|
35
|
37
|
/** |
Please login to merge, or discard this patch.