Passed
Push — master ( 89417d...5e4d51 )
by Leandro
01:55
created
src/Cwpapi.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,9 @@
 block discarded – undo
41 41
      */
42 42
     public function __construct(string $cwpurl, string $apikey, bool $sslverify = false, bool $debug = false)
43 43
     {
44
-        if (!filter_var($cwpurl, FILTER_VALIDATE_URL))
45
-            throw new Exception('Invalid URL!');
44
+        if (!filter_var($cwpurl, FILTER_VALIDATE_URL)) {
45
+                    throw new Exception('Invalid URL!');
46
+        }
46 47
         $urllen = strlen($cwpurl) - 1;
47 48
         $url = ($cwpurl[$urllen] == "/") ? mb_substr($cwpurl, 0, $urllen) : $cwpurl;
48 49
 
Please login to merge, or discard this patch.