Completed
Push — master ( 5b4fc6...88c6b8 )
by Gideon
01:10
created
src/Gidkom/OpenFireRestApi/OpenFireRestApi.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,10 +37,11 @@
 block discarded – undo
37 37
     	$base = ($this->useSSL) ? "https" : "http";
38 38
     	$url = $base . "://" . $this->host . ":" .$this->port.$this->plugin.$endpoint;
39 39
 	    
40
-	if ($this->useBasicAuth)
41
-            $auth = 'Basic ' . base64_encode($this->basicUser . ':' . $this->basicPwd);
42
-        else
43
-            $auth = $this->secret;
40
+	if ($this->useBasicAuth) {
41
+	            $auth = 'Basic ' . base64_encode($this->basicUser . ':' . $this->basicPwd);
42
+	} else {
43
+                    $auth = $this->secret;
44
+        }
44 45
 	    
45 46
     	$headers = array(
46 47
   			'Accept' => 'application/json',
Please login to merge, or discard this patch.