Completed
Branch dev (988878)
by Gideon
03:17
created
src/Gidkom/OpenFireRestApi/OpenFireRestApi.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -119,7 +119,6 @@  discard block
 block discarded – undo
119 119
      * Add user to a group
120 120
      *
121 121
      * @param   string          $username   Username
122
-     * @param   string           $groups   Groups to add user
123 122
      * @return  json|false                 Json with data or error, or False when something went fully wrong
124 123
      */
125 124
     public function addToGroup($username, $groupName)
@@ -133,7 +132,6 @@  discard block
 block discarded – undo
133 132
      * Delete user from a group
134 133
      *
135 134
      * @param   string          $username   Username
136
-     * @param   string           $groups   Groups to add user
137 135
      * @return  json|false                 Json with data or error, or False when something went fully wrong
138 136
      */
139 137
     public function deleteFromGroup($username, $groupName)
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,9 @@
 block discarded – undo
25 25
     {
26 26
         $query = '';
27 27
         
28
-        if(isset($opts['search'])) $query .= '?search='.$opts['search'];
28
+        if(isset($opts['search'])) {
29
+            $query .= '?search='.$opts['search'];
30
+        }
29 31
         
30 32
     	$endpoint = '/users'.$query;        
31 33
     	return $this->doRequest('GET', $endpoint);
Please login to merge, or discard this patch.
src/Gidkom/OpenFireRestApi/RestClient.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,10 +45,11 @@
 block discarded – undo
45 45
     	$base = ($this->useSSL) ? "https" : "http";
46 46
     	$url = $base . "://" . $this->host . ":" .$this->port.$this->plugin.$endpoint;
47 47
 	    
48
-		if ($this->useBasicAuth)
49
-            $auth = 'Basic ' . base64_encode($this->basicUser . ':' . $this->basicPwd);
50
-        else
51
-            $auth = $this->secret;
48
+		if ($this->useBasicAuth) {
49
+		            $auth = 'Basic ' . base64_encode($this->basicUser . ':' . $this->basicPwd);
50
+		} else {
51
+                    $auth = $this->secret;
52
+        }
52 53
 	    
53 54
     	$headers = array(
54 55
   			'Accept' => 'application/json',
Please login to merge, or discard this patch.