@@ -38,15 +38,15 @@ discard block |
||
| 38 | 38 | public function __construct($client) |
| 39 | 39 | { |
| 40 | 40 | $this->_client = $client; |
| 41 | - $this->_params =['responseClass'=>'Manticoresearch\\Response\\SqlToArray']; |
|
| 41 | + $this->_params = ['responseClass'=>'Manticoresearch\\Response\\SqlToArray']; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - public function agentstatus($params=[]) |
|
| 44 | + public function agentstatus($params = []) |
|
| 45 | 45 | { |
| 46 | 46 | $body = $params['body']??[]; |
| 47 | 47 | $endpoint = new AgentStatus(); |
| 48 | 48 | $endpoint->setBody($body); |
| 49 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 49 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 50 | 50 | return $response->getResponse(); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $body = $params['body']; |
| 56 | 56 | $endpoint = new CreateFunction(); |
| 57 | 57 | $endpoint->setBody($body); |
| 58 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 58 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 59 | 59 | return $response->getResponse(); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $body = $params['body']; |
| 65 | 65 | $endpoint = new CreatePlugin(); |
| 66 | 66 | $endpoint->setBody($body); |
| 67 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 67 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 68 | 68 | return $response->getResponse(); |
| 69 | 69 | } |
| 70 | 70 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $body = $params['body']; |
| 74 | 74 | $endpoint = new Debug(); |
| 75 | 75 | $endpoint->setBody($body); |
| 76 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 76 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 77 | 77 | return $response->getResponse(); |
| 78 | 78 | } |
| 79 | 79 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $body = $params['body']; |
| 83 | 83 | $endpoint = new DropFunction(); |
| 84 | 84 | $endpoint->setBody($body); |
| 85 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 85 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 86 | 86 | return $response->getResponse(); |
| 87 | 87 | } |
| 88 | 88 | |
@@ -91,61 +91,61 @@ discard block |
||
| 91 | 91 | $body = $params['body']; |
| 92 | 92 | $endpoint = new DropPlugin(); |
| 93 | 93 | $endpoint->setBody($body); |
| 94 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 94 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 95 | 95 | return $response->getResponse(); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | - public function flushattributes($params=[]) |
|
| 98 | + public function flushattributes($params = []) |
|
| 99 | 99 | { |
| 100 | 100 | $body = $params['body']??[]; |
| 101 | 101 | $endpoint = new FlushAttributes(); |
| 102 | 102 | $endpoint->setBody($body); |
| 103 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 103 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 104 | 104 | return $response->getResponse(); |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - public function flushhostnames($params=[]) |
|
| 107 | + public function flushhostnames($params = []) |
|
| 108 | 108 | { |
| 109 | 109 | $body = $params['body']??[]; |
| 110 | 110 | $endpoint = new FlushHostnames(); |
| 111 | 111 | $endpoint->setBody($body); |
| 112 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 112 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 113 | 113 | return $response->getResponse(); |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | - public function flushlogs($params=[]) |
|
| 116 | + public function flushlogs($params = []) |
|
| 117 | 117 | { |
| 118 | 118 | $body = $params['body']??[]; |
| 119 | 119 | $endpoint = new FlushLogs(); |
| 120 | 120 | $endpoint->setBody($body); |
| 121 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 121 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 122 | 122 | return $response->getResponse(); |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - public function plugins($params=[]) |
|
| 125 | + public function plugins($params = []) |
|
| 126 | 126 | { |
| 127 | 127 | $body = $params['body']??[]; |
| 128 | 128 | $endpoint = new Plugins(); |
| 129 | 129 | $endpoint->setBody($body); |
| 130 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 130 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 131 | 131 | return $response->getResponse(); |
| 132 | 132 | } |
| 133 | 133 | |
| 134 | - public function reloadindexes($params=[]) |
|
| 134 | + public function reloadindexes($params = []) |
|
| 135 | 135 | { |
| 136 | 136 | $body = $params['body']??[]; |
| 137 | 137 | $endpoint = new ReloadIndexes(); |
| 138 | 138 | $endpoint->setBody($body); |
| 139 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 139 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 140 | 140 | return $response->getResponse(); |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - public function reloadplugins($params=[]) |
|
| 143 | + public function reloadplugins($params = []) |
|
| 144 | 144 | { |
| 145 | 145 | $body = $params['body']??[]; |
| 146 | 146 | $endpoint = new ReloadPlugins(); |
| 147 | 147 | $endpoint->setBody($body); |
| 148 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 148 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 149 | 149 | return $response->getResponse(); |
| 150 | 150 | } |
| 151 | 151 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | $body = $params['body']; |
| 155 | 155 | $endpoint = new Set(); |
| 156 | 156 | $endpoint->setBody($body); |
| 157 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 157 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 158 | 158 | return $response->getResponse(); |
| 159 | 159 | } |
| 160 | 160 | |
@@ -162,40 +162,40 @@ discard block |
||
| 162 | 162 | * @param array $params |
| 163 | 163 | * @return mixed |
| 164 | 164 | */ |
| 165 | - public function status($params=[]) |
|
| 165 | + public function status($params = []) |
|
| 166 | 166 | { |
| 167 | 167 | $body = $params['body']??[]; |
| 168 | 168 | $endpoint = new Status(); |
| 169 | 169 | $endpoint->setBody($body); |
| 170 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 170 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 171 | 171 | return $response->getResponse(); |
| 172 | 172 | |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - public function tables($params=[]) |
|
| 175 | + public function tables($params = []) |
|
| 176 | 176 | { |
| 177 | 177 | $body = $params['body']??[]; |
| 178 | 178 | $endpoint = new Tables(); |
| 179 | 179 | $endpoint->setBody($body); |
| 180 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 180 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 181 | 181 | return $response->getResponse(); |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | - public function threads($params=[]) |
|
| 184 | + public function threads($params = []) |
|
| 185 | 185 | { |
| 186 | 186 | $body = $params['body']??[]; |
| 187 | 187 | $endpoint = new Threads(); |
| 188 | 188 | $endpoint->setBody($body); |
| 189 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 189 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 190 | 190 | return $response->getResponse(); |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | - public function variables($params=[]) |
|
| 193 | + public function variables($params = []) |
|
| 194 | 194 | { |
| 195 | 195 | $body = $params['body']??[]; |
| 196 | 196 | $endpoint = new Variables(); |
| 197 | 197 | $endpoint->setBody($body); |
| 198 | - $response = $this->_client->request($endpoint,$this->_params); |
|
| 198 | + $response = $this->_client->request($endpoint, $this->_params); |
|
| 199 | 199 | return $response->getResponse(); |
| 200 | 200 | } |
| 201 | 201 | } |