@@ -25,7 +25,9 @@ |
||
| 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); |
@@ -45,10 +45,11 @@ |
||
| 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', |