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