Passed
Push — master ( 8c1c43...a212ae )
by Francis
01:09
created
libraries/GMail.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -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.