Completed
Pull Request — master (#359)
by Maxence
41s
created
lib/Vendor/Elastic/Elasticsearch/Endpoints/SearchableSnapshots.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -52,13 +52,13 @@  discard block
 block discarded – undo
52 52
 	public function cacheStats(array $params = [])
53 53
 	{
54 54
 		if (isset($params['node_id'])) {
55
-			$url = '/_searchable_snapshots/' . $this->encode($params['node_id']) . '/cache/stats';
55
+			$url = '/_searchable_snapshots/'.$this->encode($params['node_id']).'/cache/stats';
56 56
 			$method = 'GET';
57 57
 		} else {
58 58
 			$url = '/_searchable_snapshots/cache/stats';
59 59
 			$method = 'GET';
60 60
 		}
61
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
61
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
62 62
 		$headers = [
63 63
 			'Accept' => 'application/json',
64 64
 		];
@@ -93,13 +93,13 @@  discard block
 block discarded – undo
93 93
 	public function clearCache(array $params = [])
94 94
 	{
95 95
 		if (isset($params['index'])) {
96
-			$url = '/' . $this->encode($params['index']) . '/_searchable_snapshots/cache/clear';
96
+			$url = '/'.$this->encode($params['index']).'/_searchable_snapshots/cache/clear';
97 97
 			$method = 'POST';
98 98
 		} else {
99 99
 			$url = '/_searchable_snapshots/cache/clear';
100 100
 			$method = 'POST';
101 101
 		}
102
-		$url = $this->addQueryString($url, $params, ['ignore_unavailable','allow_no_indices','expand_wildcards','pretty','human','error_trace','source','filter_path']);
102
+		$url = $this->addQueryString($url, $params, ['ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
103 103
 		$headers = [
104 104
 			'Accept' => 'application/json',
105 105
 		];
@@ -135,11 +135,11 @@  discard block
 block discarded – undo
135 135
 	 */
136 136
 	public function mount(array $params = [])
137 137
 	{
138
-		$this->checkRequiredParameters(['repository','snapshot','body'], $params);
139
-		$url = '/_snapshot/' . $this->encode($params['repository']) . '/' . $this->encode($params['snapshot']) . '/_mount';
138
+		$this->checkRequiredParameters(['repository', 'snapshot', 'body'], $params);
139
+		$url = '/_snapshot/'.$this->encode($params['repository']).'/'.$this->encode($params['snapshot']).'/_mount';
140 140
 		$method = 'POST';
141 141
 
142
-		$url = $this->addQueryString($url, $params, ['master_timeout','wait_for_completion','storage','pretty','human','error_trace','source','filter_path']);
142
+		$url = $this->addQueryString($url, $params, ['master_timeout', 'wait_for_completion', 'storage', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
143 143
 		$headers = [
144 144
 			'Accept' => 'application/json',
145 145
 			'Content-Type' => 'application/json',
@@ -172,13 +172,13 @@  discard block
 block discarded – undo
172 172
 	public function stats(array $params = [])
173 173
 	{
174 174
 		if (isset($params['index'])) {
175
-			$url = '/' . $this->encode($params['index']) . '/_searchable_snapshots/stats';
175
+			$url = '/'.$this->encode($params['index']).'/_searchable_snapshots/stats';
176 176
 			$method = 'GET';
177 177
 		} else {
178 178
 			$url = '/_searchable_snapshots/stats';
179 179
 			$method = 'GET';
180 180
 		}
181
-		$url = $this->addQueryString($url, $params, ['level','pretty','human','error_trace','source','filter_path']);
181
+		$url = $this->addQueryString($url, $params, ['level', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
182 182
 		$headers = [
183 183
 			'Accept' => 'application/json',
184 184
 		];
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
26 26
 /**
27 27
  * @generated This file is generated, please do not edit
28 28
  */
29
-class SearchableSnapshots extends AbstractEndpoint
30
-{
29
+class SearchableSnapshots extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Retrieve node-level cache statistics about searchable snapshots.
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/Cluster.php 2 patches
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 		$url = '/_cluster/allocation/explain';
56 56
 		$method = empty($params['body']) ? 'GET' : 'POST';
57 57
 
58
-		$url = $this->addQueryString($url, $params, ['include_yes_decisions','include_disk_info','pretty','human','error_trace','source','filter_path']);
58
+		$url = $this->addQueryString($url, $params, ['include_yes_decisions', 'include_disk_info', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
59 59
 		$headers = [
60 60
 			'Accept' => 'application/json',
61 61
 			'Content-Type' => 'application/json',
@@ -90,10 +90,10 @@  discard block
 block discarded – undo
90 90
 	public function deleteComponentTemplate(array $params = [])
91 91
 	{
92 92
 		$this->checkRequiredParameters(['name'], $params);
93
-		$url = '/_component_template/' . $this->encode($params['name']);
93
+		$url = '/_component_template/'.$this->encode($params['name']);
94 94
 		$method = 'DELETE';
95 95
 
96
-		$url = $this->addQueryString($url, $params, ['timeout','master_timeout','pretty','human','error_trace','source','filter_path']);
96
+		$url = $this->addQueryString($url, $params, ['timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
97 97
 		$headers = [
98 98
 			'Accept' => 'application/json',
99 99
 		];
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 		$url = '/_cluster/voting_config_exclusions';
128 128
 		$method = 'DELETE';
129 129
 
130
-		$url = $this->addQueryString($url, $params, ['wait_for_removal','master_timeout','pretty','human','error_trace','source','filter_path']);
130
+		$url = $this->addQueryString($url, $params, ['wait_for_removal', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
131 131
 		$headers = [
132 132
 			'Accept' => 'application/json',
133 133
 		];
@@ -161,10 +161,10 @@  discard block
 block discarded – undo
161 161
 	public function existsComponentTemplate(array $params = [])
162 162
 	{
163 163
 		$this->checkRequiredParameters(['name'], $params);
164
-		$url = '/_component_template/' . $this->encode($params['name']);
164
+		$url = '/_component_template/'.$this->encode($params['name']);
165 165
 		$method = 'HEAD';
166 166
 
167
-		$url = $this->addQueryString($url, $params, ['master_timeout','local','pretty','human','error_trace','source','filter_path']);
167
+		$url = $this->addQueryString($url, $params, ['master_timeout', 'local', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
168 168
 		$headers = [
169 169
 			'Accept' => 'application/json',
170 170
 		];
@@ -198,13 +198,13 @@  discard block
 block discarded – undo
198 198
 	public function getComponentTemplate(array $params = [])
199 199
 	{
200 200
 		if (isset($params['name'])) {
201
-			$url = '/_component_template/' . $this->encode($params['name']);
201
+			$url = '/_component_template/'.$this->encode($params['name']);
202 202
 			$method = 'GET';
203 203
 		} else {
204 204
 			$url = '/_component_template';
205 205
 			$method = 'GET';
206 206
 		}
207
-		$url = $this->addQueryString($url, $params, ['master_timeout','local','include_defaults','pretty','human','error_trace','source','filter_path']);
207
+		$url = $this->addQueryString($url, $params, ['master_timeout', 'local', 'include_defaults', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
208 208
 		$headers = [
209 209
 			'Accept' => 'application/json',
210 210
 		];
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 		$url = '/_cluster/settings';
241 241
 		$method = 'GET';
242 242
 
243
-		$url = $this->addQueryString($url, $params, ['flat_settings','master_timeout','timeout','include_defaults','pretty','human','error_trace','source','filter_path']);
243
+		$url = $this->addQueryString($url, $params, ['flat_settings', 'master_timeout', 'timeout', 'include_defaults', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
244 244
 		$headers = [
245 245
 			'Accept' => 'application/json',
246 246
 		];
@@ -282,13 +282,13 @@  discard block
 block discarded – undo
282 282
 	public function health(array $params = [])
283 283
 	{
284 284
 		if (isset($params['index'])) {
285
-			$url = '/_cluster/health/' . $this->encode($params['index']);
285
+			$url = '/_cluster/health/'.$this->encode($params['index']);
286 286
 			$method = 'GET';
287 287
 		} else {
288 288
 			$url = '/_cluster/health';
289 289
 			$method = 'GET';
290 290
 		}
291
-		$url = $this->addQueryString($url, $params, ['expand_wildcards','level','local','master_timeout','timeout','wait_for_active_shards','wait_for_nodes','wait_for_events','wait_for_no_relocating_shards','wait_for_no_initializing_shards','wait_for_status','pretty','human','error_trace','source','filter_path']);
291
+		$url = $this->addQueryString($url, $params, ['expand_wildcards', 'level', 'local', 'master_timeout', 'timeout', 'wait_for_active_shards', 'wait_for_nodes', 'wait_for_events', 'wait_for_no_relocating_shards', 'wait_for_no_initializing_shards', 'wait_for_status', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
292 292
 		$headers = [
293 293
 			'Accept' => 'application/json',
294 294
 		];
@@ -320,10 +320,10 @@  discard block
 block discarded – undo
320 320
 	public function info(array $params = [])
321 321
 	{
322 322
 		$this->checkRequiredParameters(['target'], $params);
323
-		$url = '/_info/' . $this->encode($params['target']);
323
+		$url = '/_info/'.$this->encode($params['target']);
324 324
 		$method = 'GET';
325 325
 
326
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
326
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
327 327
 		$headers = [
328 328
 			'Accept' => 'application/json',
329 329
 		];
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
 		$url = '/_cluster/pending_tasks';
359 359
 		$method = 'GET';
360 360
 
361
-		$url = $this->addQueryString($url, $params, ['local','master_timeout','pretty','human','error_trace','source','filter_path']);
361
+		$url = $this->addQueryString($url, $params, ['local', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
362 362
 		$headers = [
363 363
 			'Accept' => 'application/json',
364 364
 		];
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
 		$url = '/_cluster/voting_config_exclusions';
395 395
 		$method = 'POST';
396 396
 
397
-		$url = $this->addQueryString($url, $params, ['node_ids','node_names','timeout','master_timeout','pretty','human','error_trace','source','filter_path']);
397
+		$url = $this->addQueryString($url, $params, ['node_ids', 'node_names', 'timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
398 398
 		$headers = [
399 399
 			'Accept' => 'application/json',
400 400
 		];
@@ -429,11 +429,11 @@  discard block
 block discarded – undo
429 429
 	 */
430 430
 	public function putComponentTemplate(array $params = [])
431 431
 	{
432
-		$this->checkRequiredParameters(['name','body'], $params);
433
-		$url = '/_component_template/' . $this->encode($params['name']);
432
+		$this->checkRequiredParameters(['name', 'body'], $params);
433
+		$url = '/_component_template/'.$this->encode($params['name']);
434 434
 		$method = 'PUT';
435 435
 
436
-		$url = $this->addQueryString($url, $params, ['create','timeout','master_timeout','pretty','human','error_trace','source','filter_path']);
436
+		$url = $this->addQueryString($url, $params, ['create', 'timeout', 'master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
437 437
 		$headers = [
438 438
 			'Accept' => 'application/json',
439 439
 			'Content-Type' => 'application/json',
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
 		$url = '/_cluster/settings';
472 472
 		$method = 'PUT';
473 473
 
474
-		$url = $this->addQueryString($url, $params, ['flat_settings','master_timeout','timeout','pretty','human','error_trace','source','filter_path']);
474
+		$url = $this->addQueryString($url, $params, ['flat_settings', 'master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
475 475
 		$headers = [
476 476
 			'Accept' => 'application/json',
477 477
 			'Content-Type' => 'application/json',
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
 		$url = '/_remote/info';
505 505
 		$method = 'GET';
506 506
 
507
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
507
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
508 508
 		$headers = [
509 509
 			'Accept' => 'application/json',
510 510
 		];
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
 		$url = '/_cluster/reroute';
544 544
 		$method = 'POST';
545 545
 
546
-		$url = $this->addQueryString($url, $params, ['dry_run','explain','retry_failed','metric','master_timeout','timeout','pretty','human','error_trace','source','filter_path']);
546
+		$url = $this->addQueryString($url, $params, ['dry_run', 'explain', 'retry_failed', 'metric', 'master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
547 547
 		$headers = [
548 548
 			'Accept' => 'application/json',
549 549
 			'Content-Type' => 'application/json',
@@ -584,16 +584,16 @@  discard block
 block discarded – undo
584 584
 	public function state(array $params = [])
585 585
 	{
586 586
 		if (isset($params['index']) && isset($params['metric'])) {
587
-			$url = '/_cluster/state/' . $this->encode($params['metric']) . '/' . $this->encode($params['index']);
587
+			$url = '/_cluster/state/'.$this->encode($params['metric']).'/'.$this->encode($params['index']);
588 588
 			$method = 'GET';
589 589
 		} elseif (isset($params['metric'])) {
590
-			$url = '/_cluster/state/' . $this->encode($params['metric']);
590
+			$url = '/_cluster/state/'.$this->encode($params['metric']);
591 591
 			$method = 'GET';
592 592
 		} else {
593 593
 			$url = '/_cluster/state';
594 594
 			$method = 'GET';
595 595
 		}
596
-		$url = $this->addQueryString($url, $params, ['local','master_timeout','flat_settings','wait_for_metadata_version','wait_for_timeout','ignore_unavailable','allow_no_indices','expand_wildcards','pretty','human','error_trace','source','filter_path']);
596
+		$url = $this->addQueryString($url, $params, ['local', 'master_timeout', 'flat_settings', 'wait_for_metadata_version', 'wait_for_timeout', 'ignore_unavailable', 'allow_no_indices', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
597 597
 		$headers = [
598 598
 			'Accept' => 'application/json',
599 599
 		];
@@ -626,13 +626,13 @@  discard block
 block discarded – undo
626 626
 	public function stats(array $params = [])
627 627
 	{
628 628
 		if (isset($params['node_id'])) {
629
-			$url = '/_cluster/stats/nodes/' . $this->encode($params['node_id']);
629
+			$url = '/_cluster/stats/nodes/'.$this->encode($params['node_id']);
630 630
 			$method = 'GET';
631 631
 		} else {
632 632
 			$url = '/_cluster/stats';
633 633
 			$method = 'GET';
634 634
 		}
635
-		$url = $this->addQueryString($url, $params, ['flat_settings','timeout','pretty','human','error_trace','source','filter_path']);
635
+		$url = $this->addQueryString($url, $params, ['flat_settings', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
636 636
 		$headers = [
637 637
 			'Accept' => 'application/json',
638 638
 		];
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
26 26
 /**
27 27
  * @generated This file is generated, please do not edit
28 28
  */
29
-class Cluster extends AbstractEndpoint
30
-{
29
+class Cluster extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Provides explanations for shard allocations in the cluster.
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/License.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		$url = '/_license';
53 53
 		$method = 'DELETE';
54 54
 
55
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
55
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
56 56
 		$headers = [
57 57
 			'Accept' => 'application/json',
58 58
 		];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 		$url = '/_license';
87 87
 		$method = 'GET';
88 88
 
89
-		$url = $this->addQueryString($url, $params, ['local','accept_enterprise','pretty','human','error_trace','source','filter_path']);
89
+		$url = $this->addQueryString($url, $params, ['local', 'accept_enterprise', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
90 90
 		$headers = [
91 91
 			'Accept' => 'application/json',
92 92
 		];
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 		$url = '/_license/basic_status';
119 119
 		$method = 'GET';
120 120
 
121
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
121
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
122 122
 		$headers = [
123 123
 			'Accept' => 'application/json',
124 124
 		];
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 		$url = '/_license/trial_status';
151 151
 		$method = 'GET';
152 152
 
153
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
153
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
154 154
 		$headers = [
155 155
 			'Accept' => 'application/json',
156 156
 		];
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 		$url = '/_license';
185 185
 		$method = 'PUT';
186 186
 
187
-		$url = $this->addQueryString($url, $params, ['acknowledge','pretty','human','error_trace','source','filter_path']);
187
+		$url = $this->addQueryString($url, $params, ['acknowledge', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
188 188
 		$headers = [
189 189
 			'Accept' => 'application/json',
190 190
 			'Content-Type' => 'application/json',
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 		$url = '/_license/start_basic';
219 219
 		$method = 'POST';
220 220
 
221
-		$url = $this->addQueryString($url, $params, ['acknowledge','pretty','human','error_trace','source','filter_path']);
221
+		$url = $this->addQueryString($url, $params, ['acknowledge', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
222 222
 		$headers = [
223 223
 			'Accept' => 'application/json',
224 224
 		];
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
 		$url = '/_license/start_trial';
253 253
 		$method = 'POST';
254 254
 
255
-		$url = $this->addQueryString($url, $params, ['type','acknowledge','pretty','human','error_trace','source','filter_path']);
255
+		$url = $this->addQueryString($url, $params, ['type', 'acknowledge', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
256 256
 		$headers = [
257 257
 			'Accept' => 'application/json',
258 258
 		];
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
26 26
 /**
27 27
  * @generated This file is generated, please do not edit
28 28
  */
29
-class License extends AbstractEndpoint
30
-{
29
+class License extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Deletes licensing information for the cluster
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/AbstractEndpoint.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,12 +19,12 @@
 block discarded – undo
19 19
 
20 20
 abstract class AbstractEndpoint
21 21
 {
22
-    use EndpointTrait;
22
+	use EndpointTrait;
23 23
 
24
-    protected ClientInterface $client;
24
+	protected ClientInterface $client;
25 25
 
26
-    public function __construct(ClientInterface $client)
27
-    {
28
-        $this->client = $client;
29
-    }
26
+	public function __construct(ClientInterface $client)
27
+	{
28
+		$this->client = $client;
29
+	}
30 30
 }
31 31
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
 use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\ClientInterface;
18 18
 use OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch\Traits\EndpointTrait;
19 19
 
20
-abstract class AbstractEndpoint
21
-{
20
+abstract class AbstractEndpoint {
22 21
     use EndpointTrait;
23 22
 
24 23
     protected ClientInterface $client;
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/Watcher.php 2 patches
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
 	{
55 55
 		$this->checkRequiredParameters(['watch_id'], $params);
56 56
 		if (isset($params['action_id'])) {
57
-			$url = '/_watcher/watch/' . $this->encode($params['watch_id']) . '/_ack/' . $this->encode($params['action_id']);
57
+			$url = '/_watcher/watch/'.$this->encode($params['watch_id']).'/_ack/'.$this->encode($params['action_id']);
58 58
 			$method = 'PUT';
59 59
 		} else {
60
-			$url = '/_watcher/watch/' . $this->encode($params['watch_id']) . '/_ack';
60
+			$url = '/_watcher/watch/'.$this->encode($params['watch_id']).'/_ack';
61 61
 			$method = 'PUT';
62 62
 		}
63
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
63
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
64 64
 		$headers = [
65 65
 			'Accept' => 'application/json',
66 66
 		];
@@ -92,10 +92,10 @@  discard block
 block discarded – undo
92 92
 	public function activateWatch(array $params = [])
93 93
 	{
94 94
 		$this->checkRequiredParameters(['watch_id'], $params);
95
-		$url = '/_watcher/watch/' . $this->encode($params['watch_id']) . '/_activate';
95
+		$url = '/_watcher/watch/'.$this->encode($params['watch_id']).'/_activate';
96 96
 		$method = 'PUT';
97 97
 
98
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
98
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
99 99
 		$headers = [
100 100
 			'Accept' => 'application/json',
101 101
 		];
@@ -127,10 +127,10 @@  discard block
 block discarded – undo
127 127
 	public function deactivateWatch(array $params = [])
128 128
 	{
129 129
 		$this->checkRequiredParameters(['watch_id'], $params);
130
-		$url = '/_watcher/watch/' . $this->encode($params['watch_id']) . '/_deactivate';
130
+		$url = '/_watcher/watch/'.$this->encode($params['watch_id']).'/_deactivate';
131 131
 		$method = 'PUT';
132 132
 
133
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
133
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
134 134
 		$headers = [
135 135
 			'Accept' => 'application/json',
136 136
 		];
@@ -162,10 +162,10 @@  discard block
 block discarded – undo
162 162
 	public function deleteWatch(array $params = [])
163 163
 	{
164 164
 		$this->checkRequiredParameters(['id'], $params);
165
-		$url = '/_watcher/watch/' . $this->encode($params['id']);
165
+		$url = '/_watcher/watch/'.$this->encode($params['id']);
166 166
 		$method = 'DELETE';
167 167
 
168
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
168
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
169 169
 		$headers = [
170 170
 			'Accept' => 'application/json',
171 171
 		];
@@ -198,13 +198,13 @@  discard block
 block discarded – undo
198 198
 	public function executeWatch(array $params = [])
199 199
 	{
200 200
 		if (isset($params['id'])) {
201
-			$url = '/_watcher/watch/' . $this->encode($params['id']) . '/_execute';
201
+			$url = '/_watcher/watch/'.$this->encode($params['id']).'/_execute';
202 202
 			$method = 'PUT';
203 203
 		} else {
204 204
 			$url = '/_watcher/watch/_execute';
205 205
 			$method = 'PUT';
206 206
 		}
207
-		$url = $this->addQueryString($url, $params, ['debug','pretty','human','error_trace','source','filter_path']);
207
+		$url = $this->addQueryString($url, $params, ['debug', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
208 208
 		$headers = [
209 209
 			'Accept' => 'application/json',
210 210
 			'Content-Type' => 'application/json',
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 		$url = '/_watcher/settings';
238 238
 		$method = 'GET';
239 239
 
240
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
240
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
241 241
 		$headers = [
242 242
 			'Accept' => 'application/json',
243 243
 			'Content-Type' => 'application/json',
@@ -270,10 +270,10 @@  discard block
 block discarded – undo
270 270
 	public function getWatch(array $params = [])
271 271
 	{
272 272
 		$this->checkRequiredParameters(['id'], $params);
273
-		$url = '/_watcher/watch/' . $this->encode($params['id']);
273
+		$url = '/_watcher/watch/'.$this->encode($params['id']);
274 274
 		$method = 'GET';
275 275
 
276
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
276
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
277 277
 		$headers = [
278 278
 			'Accept' => 'application/json',
279 279
 		];
@@ -310,10 +310,10 @@  discard block
 block discarded – undo
310 310
 	public function putWatch(array $params = [])
311 311
 	{
312 312
 		$this->checkRequiredParameters(['id'], $params);
313
-		$url = '/_watcher/watch/' . $this->encode($params['id']);
313
+		$url = '/_watcher/watch/'.$this->encode($params['id']);
314 314
 		$method = 'PUT';
315 315
 
316
-		$url = $this->addQueryString($url, $params, ['active','version','if_seq_no','if_primary_term','pretty','human','error_trace','source','filter_path']);
316
+		$url = $this->addQueryString($url, $params, ['active', 'version', 'if_seq_no', 'if_primary_term', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
317 317
 		$headers = [
318 318
 			'Accept' => 'application/json',
319 319
 			'Content-Type' => 'application/json',
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 		$url = '/_watcher/_query/watches';
348 348
 		$method = empty($params['body']) ? 'GET' : 'POST';
349 349
 
350
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
350
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
351 351
 		$headers = [
352 352
 			'Accept' => 'application/json',
353 353
 			'Content-Type' => 'application/json',
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
 		$url = '/_watcher/_start';
381 381
 		$method = 'POST';
382 382
 
383
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
383
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
384 384
 		$headers = [
385 385
 			'Accept' => 'application/json',
386 386
 		];
@@ -412,13 +412,13 @@  discard block
 block discarded – undo
412 412
 	public function stats(array $params = [])
413 413
 	{
414 414
 		if (isset($params['metric'])) {
415
-			$url = '/_watcher/stats/' . $this->encode($params['metric']);
415
+			$url = '/_watcher/stats/'.$this->encode($params['metric']);
416 416
 			$method = 'GET';
417 417
 		} else {
418 418
 			$url = '/_watcher/stats';
419 419
 			$method = 'GET';
420 420
 		}
421
-		$url = $this->addQueryString($url, $params, ['emit_stacktraces','pretty','human','error_trace','source','filter_path']);
421
+		$url = $this->addQueryString($url, $params, ['emit_stacktraces', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
422 422
 		$headers = [
423 423
 			'Accept' => 'application/json',
424 424
 		];
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 		$url = '/_watcher/_stop';
451 451
 		$method = 'POST';
452 452
 
453
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
453
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
454 454
 		$headers = [
455 455
 			'Accept' => 'application/json',
456 456
 		];
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
 		$url = '/_watcher/settings';
485 485
 		$method = 'PUT';
486 486
 
487
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
487
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
488 488
 		$headers = [
489 489
 			'Accept' => 'application/json',
490 490
 			'Content-Type' => 'application/json',
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
26 26
 /**
27 27
  * @generated This file is generated, please do not edit
28 28
  */
29
-class Watcher extends AbstractEndpoint
30
-{
29
+class Watcher extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Acknowledges a watch, manually throttling the execution of the watch's actions.
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/Features.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		$url = '/_features';
54 54
 		$method = 'GET';
55 55
 
56
-		$url = $this->addQueryString($url, $params, ['master_timeout','pretty','human','error_trace','source','filter_path']);
56
+		$url = $this->addQueryString($url, $params, ['master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
57 57
 		$headers = [
58 58
 			'Accept' => 'application/json',
59 59
 		];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 		$url = '/_features/_reset';
87 87
 		$method = 'POST';
88 88
 
89
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
89
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
90 90
 		$headers = [
91 91
 			'Accept' => 'application/json',
92 92
 		];
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
26 26
 /**
27 27
  * @generated This file is generated, please do not edit
28 28
  */
29
-class Features extends AbstractEndpoint
30
-{
29
+class Features extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/ConnectorSyncJob.php 2 patches
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
 	public function cancel(array $params = [])
54 54
 	{
55 55
 		$this->checkRequiredParameters(['connector_sync_job_id'], $params);
56
-		$url = '/_connector/_sync_job/' . $this->encode($params['connector_sync_job_id']) . '/_cancel';
56
+		$url = '/_connector/_sync_job/'.$this->encode($params['connector_sync_job_id']).'/_cancel';
57 57
 		$method = 'PUT';
58 58
 
59
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
59
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
60 60
 		$headers = [
61 61
 			'Accept' => 'application/json',
62 62
 		];
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
 	public function checkIn(array $params = [])
90 90
 	{
91 91
 		$this->checkRequiredParameters(['connector_sync_job_id'], $params);
92
-		$url = '/_connector/_sync_job/' . $this->encode($params['connector_sync_job_id']) . '/_check_in';
92
+		$url = '/_connector/_sync_job/'.$this->encode($params['connector_sync_job_id']).'/_check_in';
93 93
 		$method = 'PUT';
94 94
 
95
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
95
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
96 96
 		$headers = [
97 97
 			'Accept' => 'application/json',
98 98
 		];
@@ -125,10 +125,10 @@  discard block
 block discarded – undo
125 125
 	public function delete(array $params = [])
126 126
 	{
127 127
 		$this->checkRequiredParameters(['connector_sync_job_id'], $params);
128
-		$url = '/_connector/_sync_job/' . $this->encode($params['connector_sync_job_id']);
128
+		$url = '/_connector/_sync_job/'.$this->encode($params['connector_sync_job_id']);
129 129
 		$method = 'DELETE';
130 130
 
131
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
131
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
132 132
 		$headers = [
133 133
 			'Accept' => 'application/json',
134 134
 		];
@@ -161,11 +161,11 @@  discard block
 block discarded – undo
161 161
 	 */
162 162
 	public function error(array $params = [])
163 163
 	{
164
-		$this->checkRequiredParameters(['connector_sync_job_id','body'], $params);
165
-		$url = '/_connector/_sync_job/' . $this->encode($params['connector_sync_job_id']) . '/_error';
164
+		$this->checkRequiredParameters(['connector_sync_job_id', 'body'], $params);
165
+		$url = '/_connector/_sync_job/'.$this->encode($params['connector_sync_job_id']).'/_error';
166 166
 		$method = 'PUT';
167 167
 
168
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
168
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
169 169
 		$headers = [
170 170
 			'Accept' => 'application/json',
171 171
 			'Content-Type' => 'application/json',
@@ -199,10 +199,10 @@  discard block
 block discarded – undo
199 199
 	public function get(array $params = [])
200 200
 	{
201 201
 		$this->checkRequiredParameters(['connector_sync_job_id'], $params);
202
-		$url = '/_connector/_sync_job/' . $this->encode($params['connector_sync_job_id']);
202
+		$url = '/_connector/_sync_job/'.$this->encode($params['connector_sync_job_id']);
203 203
 		$method = 'GET';
204 204
 
205
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
205
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
206 206
 		$headers = [
207 207
 			'Accept' => 'application/json',
208 208
 		];
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 		$url = '/_connector/_sync_job';
241 241
 		$method = 'GET';
242 242
 
243
-		$url = $this->addQueryString($url, $params, ['from','size','status','connector_id','job_type','pretty','human','error_trace','source','filter_path']);
243
+		$url = $this->addQueryString($url, $params, ['from', 'size', 'status', 'connector_id', 'job_type', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
244 244
 		$headers = [
245 245
 			'Accept' => 'application/json',
246 246
 		];
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 		$url = '/_connector/_sync_job';
276 276
 		$method = 'POST';
277 277
 
278
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
278
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
279 279
 		$headers = [
280 280
 			'Accept' => 'application/json',
281 281
 			'Content-Type' => 'application/json',
@@ -309,11 +309,11 @@  discard block
 block discarded – undo
309 309
 	 */
310 310
 	public function updateStats(array $params = [])
311 311
 	{
312
-		$this->checkRequiredParameters(['connector_sync_job_id','body'], $params);
313
-		$url = '/_connector/_sync_job/' . $this->encode($params['connector_sync_job_id']) . '/_stats';
312
+		$this->checkRequiredParameters(['connector_sync_job_id', 'body'], $params);
313
+		$url = '/_connector/_sync_job/'.$this->encode($params['connector_sync_job_id']).'/_stats';
314 314
 		$method = 'PUT';
315 315
 
316
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
316
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
317 317
 		$headers = [
318 318
 			'Accept' => 'application/json',
319 319
 			'Content-Type' => 'application/json',
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
26 26
 /**
27 27
  * @generated This file is generated, please do not edit
28 28
  */
29
-class ConnectorSyncJob extends AbstractEndpoint
30
-{
29
+class ConnectorSyncJob extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Cancels a connector sync job.
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/QueryRuleset.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
 	public function delete(array $params = [])
54 54
 	{
55 55
 		$this->checkRequiredParameters(['ruleset_id'], $params);
56
-		$url = '/_query_rules/' . $this->encode($params['ruleset_id']);
56
+		$url = '/_query_rules/'.$this->encode($params['ruleset_id']);
57 57
 		$method = 'DELETE';
58 58
 
59
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
59
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
60 60
 		$headers = [
61 61
 			'Accept' => 'application/json',
62 62
 		];
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
 	public function get(array $params = [])
90 90
 	{
91 91
 		$this->checkRequiredParameters(['ruleset_id'], $params);
92
-		$url = '/_query_rules/' . $this->encode($params['ruleset_id']);
92
+		$url = '/_query_rules/'.$this->encode($params['ruleset_id']);
93 93
 		$method = 'GET';
94 94
 
95
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
95
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
96 96
 		$headers = [
97 97
 			'Accept' => 'application/json',
98 98
 		];
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 		$url = '/_query_rules';
128 128
 		$method = 'GET';
129 129
 
130
-		$url = $this->addQueryString($url, $params, ['from','size','pretty','human','error_trace','source','filter_path']);
130
+		$url = $this->addQueryString($url, $params, ['from', 'size', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
131 131
 		$headers = [
132 132
 			'Accept' => 'application/json',
133 133
 		];
@@ -160,11 +160,11 @@  discard block
 block discarded – undo
160 160
 	 */
161 161
 	public function put(array $params = [])
162 162
 	{
163
-		$this->checkRequiredParameters(['ruleset_id','body'], $params);
164
-		$url = '/_query_rules/' . $this->encode($params['ruleset_id']);
163
+		$this->checkRequiredParameters(['ruleset_id', 'body'], $params);
164
+		$url = '/_query_rules/'.$this->encode($params['ruleset_id']);
165 165
 		$method = 'PUT';
166 166
 
167
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
167
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
168 168
 		$headers = [
169 169
 			'Accept' => 'application/json',
170 170
 			'Content-Type' => 'application/json',
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
26 26
 /**
27 27
  * @generated This file is generated, please do not edit
28 28
  */
29
-class QueryRuleset extends AbstractEndpoint
30
-{
29
+class QueryRuleset extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Deletes a query ruleset.
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/Monitoring.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,13 +56,13 @@
 block discarded – undo
56 56
 	{
57 57
 		$this->checkRequiredParameters(['body'], $params);
58 58
 		if (isset($params['type'])) {
59
-			$url = '/_monitoring/' . $this->encode($params['type']) . '/bulk';
59
+			$url = '/_monitoring/'.$this->encode($params['type']).'/bulk';
60 60
 			$method = 'POST';
61 61
 		} else {
62 62
 			$url = '/_monitoring/bulk';
63 63
 			$method = 'POST';
64 64
 		}
65
-		$url = $this->addQueryString($url, $params, ['system_id','system_api_version','interval','pretty','human','error_trace','source','filter_path']);
65
+		$url = $this->addQueryString($url, $params, ['system_id', 'system_api_version', 'interval', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
66 66
 		$headers = [
67 67
 			'Accept' => 'application/json',
68 68
 			'Content-Type' => 'application/x-ndjson',
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
26 26
 /**
27 27
  * @generated This file is generated, please do not edit
28 28
  */
29
-class Monitoring extends AbstractEndpoint
30
-{
29
+class Monitoring extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Used by the monitoring features to send monitoring data.
33 32
 	 *
Please login to merge, or discard this patch.