Passed
Push — master ( 1230d1...ab986e )
by Francis
01:11
created
libraries/GMail.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,9 @@
 block discarded – undo
33 33
    * @return string               Authorize URL
34 34
    */
35 35
   public function getAuthorizeUrl(string $scope, string $redirectUri='urn:ietf:wg:oauth:2.0:oob', string $responseType='code', string $accessType='offline'):string {
36
-    if ($scope == null) throw new Exception("GMail scope cannot be null");
36
+    if ($scope == null) {
37
+      throw new Exception("GMail scope cannot be null");
38
+    }
37 39
     return self::AUTH_URL . build_url_query([
38 40
       'client_id'     => $this->clientId,
39 41
       'redirect_uri'  => $redirectUri,
Please login to merge, or discard this patch.