Completed
Pull Request — master (#359)
by Maxence
41s
created
lib/Vendor/Elastic/Elasticsearch/Endpoints/Synonyms.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
 	public function deleteSynonym(array $params = [])
53 53
 	{
54 54
 		$this->checkRequiredParameters(['id'], $params);
55
-		$url = '/_synonyms/' . $this->encode($params['id']);
55
+		$url = '/_synonyms/'.$this->encode($params['id']);
56 56
 		$method = 'DELETE';
57 57
 
58
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
58
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
59 59
 		$headers = [
60 60
 			'Accept' => 'application/json',
61 61
 		];
@@ -87,11 +87,11 @@  discard block
 block discarded – undo
87 87
 	 */
88 88
 	public function deleteSynonymRule(array $params = [])
89 89
 	{
90
-		$this->checkRequiredParameters(['set_id','rule_id'], $params);
91
-		$url = '/_synonyms/' . $this->encode($params['set_id']) . '/' . $this->encode($params['rule_id']);
90
+		$this->checkRequiredParameters(['set_id', 'rule_id'], $params);
91
+		$url = '/_synonyms/'.$this->encode($params['set_id']).'/'.$this->encode($params['rule_id']);
92 92
 		$method = 'DELETE';
93 93
 
94
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
94
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
95 95
 		$headers = [
96 96
 			'Accept' => 'application/json',
97 97
 			'Content-Type' => 'application/json',
@@ -126,10 +126,10 @@  discard block
 block discarded – undo
126 126
 	public function getSynonym(array $params = [])
127 127
 	{
128 128
 		$this->checkRequiredParameters(['id'], $params);
129
-		$url = '/_synonyms/' . $this->encode($params['id']);
129
+		$url = '/_synonyms/'.$this->encode($params['id']);
130 130
 		$method = 'GET';
131 131
 
132
-		$url = $this->addQueryString($url, $params, ['from','size','pretty','human','error_trace','source','filter_path']);
132
+		$url = $this->addQueryString($url, $params, ['from', 'size', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
133 133
 		$headers = [
134 134
 			'Accept' => 'application/json',
135 135
 		];
@@ -161,11 +161,11 @@  discard block
 block discarded – undo
161 161
 	 */
162 162
 	public function getSynonymRule(array $params = [])
163 163
 	{
164
-		$this->checkRequiredParameters(['set_id','rule_id'], $params);
165
-		$url = '/_synonyms/' . $this->encode($params['set_id']) . '/' . $this->encode($params['rule_id']);
164
+		$this->checkRequiredParameters(['set_id', 'rule_id'], $params);
165
+		$url = '/_synonyms/'.$this->encode($params['set_id']).'/'.$this->encode($params['rule_id']);
166 166
 		$method = 'GET';
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',
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 		$url = '/_synonyms';
201 201
 		$method = 'GET';
202 202
 
203
-		$url = $this->addQueryString($url, $params, ['from','size','pretty','human','error_trace','source','filter_path']);
203
+		$url = $this->addQueryString($url, $params, ['from', 'size', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
204 204
 		$headers = [
205 205
 			'Accept' => 'application/json',
206 206
 		];
@@ -232,11 +232,11 @@  discard block
 block discarded – undo
232 232
 	 */
233 233
 	public function putSynonym(array $params = [])
234 234
 	{
235
-		$this->checkRequiredParameters(['id','body'], $params);
236
-		$url = '/_synonyms/' . $this->encode($params['id']);
235
+		$this->checkRequiredParameters(['id', 'body'], $params);
236
+		$url = '/_synonyms/'.$this->encode($params['id']);
237 237
 		$method = 'PUT';
238 238
 
239
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
239
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
240 240
 		$headers = [
241 241
 			'Accept' => 'application/json',
242 242
 			'Content-Type' => 'application/json',
@@ -270,11 +270,11 @@  discard block
 block discarded – undo
270 270
 	 */
271 271
 	public function putSynonymRule(array $params = [])
272 272
 	{
273
-		$this->checkRequiredParameters(['set_id','rule_id','body'], $params);
274
-		$url = '/_synonyms/' . $this->encode($params['set_id']) . '/' . $this->encode($params['rule_id']);
273
+		$this->checkRequiredParameters(['set_id', 'rule_id', 'body'], $params);
274
+		$url = '/_synonyms/'.$this->encode($params['set_id']).'/'.$this->encode($params['rule_id']);
275 275
 		$method = 'PUT';
276 276
 
277
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
277
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
278 278
 		$headers = [
279 279
 			'Accept' => 'application/json',
280 280
 			'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 Synonyms extends AbstractEndpoint
30
-{
29
+class Synonyms extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Deletes a synonym set
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/Rollup.php 2 patches
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
 	public function deleteJob(array $params = [])
54 54
 	{
55 55
 		$this->checkRequiredParameters(['id'], $params);
56
-		$url = '/_rollup/job/' . $this->encode($params['id']);
56
+		$url = '/_rollup/job/'.$this->encode($params['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
 		];
@@ -88,13 +88,13 @@  discard block
 block discarded – undo
88 88
 	public function getJobs(array $params = [])
89 89
 	{
90 90
 		if (isset($params['id'])) {
91
-			$url = '/_rollup/job/' . $this->encode($params['id']);
91
+			$url = '/_rollup/job/'.$this->encode($params['id']);
92 92
 			$method = 'GET';
93 93
 		} else {
94 94
 			$url = '/_rollup/job/';
95 95
 			$method = 'GET';
96 96
 		}
97
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
97
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
98 98
 		$headers = [
99 99
 			'Accept' => 'application/json',
100 100
 		];
@@ -126,13 +126,13 @@  discard block
 block discarded – undo
126 126
 	public function getRollupCaps(array $params = [])
127 127
 	{
128 128
 		if (isset($params['id'])) {
129
-			$url = '/_rollup/data/' . $this->encode($params['id']);
129
+			$url = '/_rollup/data/'.$this->encode($params['id']);
130 130
 			$method = 'GET';
131 131
 		} else {
132 132
 			$url = '/_rollup/data/';
133 133
 			$method = 'GET';
134 134
 		}
135
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
135
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
136 136
 		$headers = [
137 137
 			'Accept' => 'application/json',
138 138
 		];
@@ -165,10 +165,10 @@  discard block
 block discarded – undo
165 165
 	public function getRollupIndexCaps(array $params = [])
166 166
 	{
167 167
 		$this->checkRequiredParameters(['index'], $params);
168
-		$url = '/' . $this->encode($params['index']) . '/_rollup/data';
168
+		$url = '/'.$this->encode($params['index']).'/_rollup/data';
169 169
 		$method = 'GET';
170 170
 
171
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
171
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
172 172
 		$headers = [
173 173
 			'Accept' => 'application/json',
174 174
 		];
@@ -201,11 +201,11 @@  discard block
 block discarded – undo
201 201
 	 */
202 202
 	public function putJob(array $params = [])
203 203
 	{
204
-		$this->checkRequiredParameters(['id','body'], $params);
205
-		$url = '/_rollup/job/' . $this->encode($params['id']);
204
+		$this->checkRequiredParameters(['id', 'body'], $params);
205
+		$url = '/_rollup/job/'.$this->encode($params['id']);
206 206
 		$method = 'PUT';
207 207
 
208
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
208
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
209 209
 		$headers = [
210 210
 			'Accept' => 'application/json',
211 211
 			'Content-Type' => 'application/json',
@@ -241,11 +241,11 @@  discard block
 block discarded – undo
241 241
 	 */
242 242
 	public function rollupSearch(array $params = [])
243 243
 	{
244
-		$this->checkRequiredParameters(['index','body'], $params);
245
-		$url = '/' . $this->encode($params['index']) . '/_rollup_search';
244
+		$this->checkRequiredParameters(['index', 'body'], $params);
245
+		$url = '/'.$this->encode($params['index']).'/_rollup_search';
246 246
 		$method = empty($params['body']) ? 'GET' : 'POST';
247 247
 
248
-		$url = $this->addQueryString($url, $params, ['typed_keys','rest_total_hits_as_int','pretty','human','error_trace','source','filter_path']);
248
+		$url = $this->addQueryString($url, $params, ['typed_keys', 'rest_total_hits_as_int', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
249 249
 		$headers = [
250 250
 			'Accept' => 'application/json',
251 251
 			'Content-Type' => 'application/json',
@@ -279,10 +279,10 @@  discard block
 block discarded – undo
279 279
 	public function startJob(array $params = [])
280 280
 	{
281 281
 		$this->checkRequiredParameters(['id'], $params);
282
-		$url = '/_rollup/job/' . $this->encode($params['id']) . '/_start';
282
+		$url = '/_rollup/job/'.$this->encode($params['id']).'/_start';
283 283
 		$method = 'POST';
284 284
 
285
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
285
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
286 286
 		$headers = [
287 287
 			'Accept' => 'application/json',
288 288
 		];
@@ -317,10 +317,10 @@  discard block
 block discarded – undo
317 317
 	public function stopJob(array $params = [])
318 318
 	{
319 319
 		$this->checkRequiredParameters(['id'], $params);
320
-		$url = '/_rollup/job/' . $this->encode($params['id']) . '/_stop';
320
+		$url = '/_rollup/job/'.$this->encode($params['id']).'/_stop';
321 321
 		$method = 'POST';
322 322
 
323
-		$url = $this->addQueryString($url, $params, ['wait_for_completion','timeout','pretty','human','error_trace','source','filter_path']);
323
+		$url = $this->addQueryString($url, $params, ['wait_for_completion', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
324 324
 		$headers = [
325 325
 			'Accept' => 'application/json',
326 326
 		];
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 Rollup extends AbstractEndpoint
30
-{
29
+class Rollup extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Deletes an existing rollup job.
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/TextStructure.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 		$url = '/_text_structure/find_structure';
70 70
 		$method = 'POST';
71 71
 
72
-		$url = $this->addQueryString($url, $params, ['lines_to_sample','line_merge_size_limit','timeout','charset','format','has_header_row','column_names','delimiter','quote','should_trim_fields','grok_pattern','ecs_compatibility','timestamp_field','timestamp_format','explain','pretty','human','error_trace','source','filter_path']);
72
+		$url = $this->addQueryString($url, $params, ['lines_to_sample', 'line_merge_size_limit', 'timeout', 'charset', 'format', 'has_header_row', 'column_names', 'delimiter', 'quote', 'should_trim_fields', 'grok_pattern', 'ecs_compatibility', 'timestamp_field', 'timestamp_format', 'explain', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
73 73
 		$headers = [
74 74
 			'Accept' => 'application/json',
75 75
 			'Content-Type' => 'application/x-ndjson',
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 		$url = '/_text_structure/test_grok_pattern';
106 106
 		$method = empty($params['body']) ? 'GET' : 'POST';
107 107
 
108
-		$url = $this->addQueryString($url, $params, ['ecs_compatibility','pretty','human','error_trace','source','filter_path']);
108
+		$url = $this->addQueryString($url, $params, ['ecs_compatibility', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
109 109
 		$headers = [
110 110
 			'Accept' => 'application/json',
111 111
 			'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 TextStructure extends AbstractEndpoint
30
-{
29
+class TextStructure extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch.
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/Simulate.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@
 block discarded – undo
55 55
 	{
56 56
 		$this->checkRequiredParameters(['body'], $params);
57 57
 		if (isset($params['index'])) {
58
-			$url = '/_ingest/' . $this->encode($params['index']) . '/_simulate';
58
+			$url = '/_ingest/'.$this->encode($params['index']).'/_simulate';
59 59
 			$method = empty($params['body']) ? 'GET' : 'POST';
60 60
 		} else {
61 61
 			$url = '/_ingest/_simulate';
62 62
 			$method = empty($params['body']) ? 'GET' : 'POST';
63 63
 		}
64
-		$url = $this->addQueryString($url, $params, ['pipeline','pretty','human','error_trace','source','filter_path']);
64
+		$url = $this->addQueryString($url, $params, ['pipeline', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
65 65
 		$headers = [
66 66
 			'Accept' => 'application/json',
67 67
 			'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 Simulate extends AbstractEndpoint
30
-{
29
+class Simulate extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Simulates running ingest with example documents.
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/Xpack.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		$url = '/_xpack';
55 55
 		$method = 'GET';
56 56
 
57
-		$url = $this->addQueryString($url, $params, ['categories','accept_enterprise','pretty','human','error_trace','source','filter_path']);
57
+		$url = $this->addQueryString($url, $params, ['categories', 'accept_enterprise', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
58 58
 		$headers = [
59 59
 			'Accept' => 'application/json',
60 60
 		];
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 		$url = '/_xpack/usage';
88 88
 		$method = 'GET';
89 89
 
90
-		$url = $this->addQueryString($url, $params, ['master_timeout','pretty','human','error_trace','source','filter_path']);
90
+		$url = $this->addQueryString($url, $params, ['master_timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
91 91
 		$headers = [
92 92
 			'Accept' => 'application/json',
93 93
 		];
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 Xpack extends AbstractEndpoint
30
-{
29
+class Xpack extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Retrieves information about the installed X-Pack features.
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/Fleet.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
 	public function globalCheckpoints(array $params = [])
57 57
 	{
58 58
 		$this->checkRequiredParameters(['index'], $params);
59
-		$url = '/' . $this->encode($params['index']) . '/_fleet/global_checkpoints';
59
+		$url = '/'.$this->encode($params['index']).'/_fleet/global_checkpoints';
60 60
 		$method = 'GET';
61 61
 
62
-		$url = $this->addQueryString($url, $params, ['wait_for_advance','wait_for_index','checkpoints','timeout','pretty','human','error_trace','source','filter_path']);
62
+		$url = $this->addQueryString($url, $params, ['wait_for_advance', 'wait_for_index', 'checkpoints', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
63 63
 		$headers = [
64 64
 			'Accept' => 'application/json',
65 65
 			'Content-Type' => 'application/json',
@@ -93,13 +93,13 @@  discard block
 block discarded – undo
93 93
 	{
94 94
 		$this->checkRequiredParameters(['body'], $params);
95 95
 		if (isset($params['index'])) {
96
-			$url = '/' . $this->encode($params['index']) . '/_fleet/_fleet_msearch';
96
+			$url = '/'.$this->encode($params['index']).'/_fleet/_fleet_msearch';
97 97
 			$method = empty($params['body']) ? 'GET' : 'POST';
98 98
 		} else {
99 99
 			$url = '/_fleet/_fleet_msearch';
100 100
 			$method = empty($params['body']) ? 'GET' : 'POST';
101 101
 		}
102
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
102
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
103 103
 		$headers = [
104 104
 			'Accept' => 'application/json',
105 105
 			'Content-Type' => 'application/x-ndjson',
@@ -136,10 +136,10 @@  discard block
 block discarded – undo
136 136
 	public function search(array $params = [])
137 137
 	{
138 138
 		$this->checkRequiredParameters(['index'], $params);
139
-		$url = '/' . $this->encode($params['index']) . '/_fleet/_fleet_search';
139
+		$url = '/'.$this->encode($params['index']).'/_fleet/_fleet_search';
140 140
 		$method = empty($params['body']) ? 'GET' : 'POST';
141 141
 
142
-		$url = $this->addQueryString($url, $params, ['wait_for_checkpoints','wait_for_checkpoints_timeout','allow_partial_search_results','pretty','human','error_trace','source','filter_path']);
142
+		$url = $this->addQueryString($url, $params, ['wait_for_checkpoints', 'wait_for_checkpoints_timeout', 'allow_partial_search_results', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
143 143
 		$headers = [
144 144
 			'Accept' => 'application/json',
145 145
 			'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 Fleet extends AbstractEndpoint
30
-{
29
+class Fleet extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Returns the current global checkpoints for an index. This API is design for internal use by the fleet server project.
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/Graph.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@
 block discarded – undo
55 55
 	public function explore(array $params = [])
56 56
 	{
57 57
 		$this->checkRequiredParameters(['index'], $params);
58
-		$url = '/' . $this->encode($params['index']) . '/_graph/explore';
58
+		$url = '/'.$this->encode($params['index']).'/_graph/explore';
59 59
 		$method = empty($params['body']) ? 'GET' : 'POST';
60 60
 
61
-		$url = $this->addQueryString($url, $params, ['routing','timeout','pretty','human','error_trace','source','filter_path']);
61
+		$url = $this->addQueryString($url, $params, ['routing', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
62 62
 		$headers = [
63 63
 			'Accept' => 'application/json',
64 64
 			'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 Graph extends AbstractEndpoint
30
-{
29
+class Graph extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Explore extracted and summarized information about the documents and terms in an index.
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/Migration.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@  discard block
 block discarded – undo
51 51
 	public function deprecations(array $params = [])
52 52
 	{
53 53
 		if (isset($params['index'])) {
54
-			$url = '/' . $this->encode($params['index']) . '/_migration/deprecations';
54
+			$url = '/'.$this->encode($params['index']).'/_migration/deprecations';
55 55
 			$method = 'GET';
56 56
 		} else {
57 57
 			$url = '/_migration/deprecations';
58 58
 			$method = 'GET';
59 59
 		}
60
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
60
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
61 61
 		$headers = [
62 62
 			'Accept' => 'application/json',
63 63
 		];
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 		$url = '/_migration/system_features';
90 90
 		$method = 'GET';
91 91
 
92
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
92
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
93 93
 		$headers = [
94 94
 			'Accept' => 'application/json',
95 95
 		];
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 		$url = '/_migration/system_features';
122 122
 		$method = 'POST';
123 123
 
124
-		$url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']);
124
+		$url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']);
125 125
 		$headers = [
126 126
 			'Accept' => 'application/json',
127 127
 		];
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 Migration extends AbstractEndpoint
30
-{
29
+class Migration extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Retrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.
33 32
 	 *
Please login to merge, or discard this patch.
lib/Vendor/Elastic/Elasticsearch/Endpoints/Transform.php 2 patches
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
 	public function deleteTransform(array $params = [])
56 56
 	{
57 57
 		$this->checkRequiredParameters(['transform_id'], $params);
58
-		$url = '/_transform/' . $this->encode($params['transform_id']);
58
+		$url = '/_transform/'.$this->encode($params['transform_id']);
59 59
 		$method = 'DELETE';
60 60
 
61
-		$url = $this->addQueryString($url, $params, ['force','delete_dest_index','timeout','pretty','human','error_trace','source','filter_path']);
61
+		$url = $this->addQueryString($url, $params, ['force', 'delete_dest_index', 'timeout', '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 getTransform(array $params = [])
94 94
 	{
95 95
 		if (isset($params['transform_id'])) {
96
-			$url = '/_transform/' . $this->encode($params['transform_id']);
96
+			$url = '/_transform/'.$this->encode($params['transform_id']);
97 97
 			$method = 'GET';
98 98
 		} else {
99 99
 			$url = '/_transform';
100 100
 			$method = 'GET';
101 101
 		}
102
-		$url = $this->addQueryString($url, $params, ['from','size','allow_no_match','exclude_generated','pretty','human','error_trace','source','filter_path']);
102
+		$url = $this->addQueryString($url, $params, ['from', 'size', 'allow_no_match', 'exclude_generated', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
103 103
 		$headers = [
104 104
 			'Accept' => 'application/json',
105 105
 		];
@@ -135,10 +135,10 @@  discard block
 block discarded – undo
135 135
 	public function getTransformStats(array $params = [])
136 136
 	{
137 137
 		$this->checkRequiredParameters(['transform_id'], $params);
138
-		$url = '/_transform/' . $this->encode($params['transform_id']) . '/_stats';
138
+		$url = '/_transform/'.$this->encode($params['transform_id']).'/_stats';
139 139
 		$method = 'GET';
140 140
 
141
-		$url = $this->addQueryString($url, $params, ['from','size','timeout','allow_no_match','pretty','human','error_trace','source','filter_path']);
141
+		$url = $this->addQueryString($url, $params, ['from', 'size', 'timeout', 'allow_no_match', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
142 142
 		$headers = [
143 143
 			'Accept' => 'application/json',
144 144
 		];
@@ -171,13 +171,13 @@  discard block
 block discarded – undo
171 171
 	public function previewTransform(array $params = [])
172 172
 	{
173 173
 		if (isset($params['transform_id'])) {
174
-			$url = '/_transform/' . $this->encode($params['transform_id']) . '/_preview';
174
+			$url = '/_transform/'.$this->encode($params['transform_id']).'/_preview';
175 175
 			$method = empty($params['body']) ? 'GET' : 'POST';
176 176
 		} else {
177 177
 			$url = '/_transform/_preview';
178 178
 			$method = empty($params['body']) ? 'GET' : 'POST';
179 179
 		}
180
-		$url = $this->addQueryString($url, $params, ['timeout','pretty','human','error_trace','source','filter_path']);
180
+		$url = $this->addQueryString($url, $params, ['timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
181 181
 		$headers = [
182 182
 			'Accept' => 'application/json',
183 183
 			'Content-Type' => 'application/json',
@@ -212,11 +212,11 @@  discard block
 block discarded – undo
212 212
 	 */
213 213
 	public function putTransform(array $params = [])
214 214
 	{
215
-		$this->checkRequiredParameters(['transform_id','body'], $params);
216
-		$url = '/_transform/' . $this->encode($params['transform_id']);
215
+		$this->checkRequiredParameters(['transform_id', 'body'], $params);
216
+		$url = '/_transform/'.$this->encode($params['transform_id']);
217 217
 		$method = 'PUT';
218 218
 
219
-		$url = $this->addQueryString($url, $params, ['defer_validation','timeout','pretty','human','error_trace','source','filter_path']);
219
+		$url = $this->addQueryString($url, $params, ['defer_validation', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
220 220
 		$headers = [
221 221
 			'Accept' => 'application/json',
222 222
 			'Content-Type' => 'application/json',
@@ -251,10 +251,10 @@  discard block
 block discarded – undo
251 251
 	public function resetTransform(array $params = [])
252 252
 	{
253 253
 		$this->checkRequiredParameters(['transform_id'], $params);
254
-		$url = '/_transform/' . $this->encode($params['transform_id']) . '/_reset';
254
+		$url = '/_transform/'.$this->encode($params['transform_id']).'/_reset';
255 255
 		$method = 'POST';
256 256
 
257
-		$url = $this->addQueryString($url, $params, ['force','timeout','pretty','human','error_trace','source','filter_path']);
257
+		$url = $this->addQueryString($url, $params, ['force', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
258 258
 		$headers = [
259 259
 			'Accept' => 'application/json',
260 260
 		];
@@ -287,10 +287,10 @@  discard block
 block discarded – undo
287 287
 	public function scheduleNowTransform(array $params = [])
288 288
 	{
289 289
 		$this->checkRequiredParameters(['transform_id'], $params);
290
-		$url = '/_transform/' . $this->encode($params['transform_id']) . '/_schedule_now';
290
+		$url = '/_transform/'.$this->encode($params['transform_id']).'/_schedule_now';
291 291
 		$method = 'POST';
292 292
 
293
-		$url = $this->addQueryString($url, $params, ['timeout','pretty','human','error_trace','source','filter_path']);
293
+		$url = $this->addQueryString($url, $params, ['timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
294 294
 		$headers = [
295 295
 			'Accept' => 'application/json',
296 296
 			'Content-Type' => 'application/json',
@@ -325,10 +325,10 @@  discard block
 block discarded – undo
325 325
 	public function startTransform(array $params = [])
326 326
 	{
327 327
 		$this->checkRequiredParameters(['transform_id'], $params);
328
-		$url = '/_transform/' . $this->encode($params['transform_id']) . '/_start';
328
+		$url = '/_transform/'.$this->encode($params['transform_id']).'/_start';
329 329
 		$method = 'POST';
330 330
 
331
-		$url = $this->addQueryString($url, $params, ['from','timeout','pretty','human','error_trace','source','filter_path']);
331
+		$url = $this->addQueryString($url, $params, ['from', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
332 332
 		$headers = [
333 333
 			'Accept' => 'application/json',
334 334
 		];
@@ -365,10 +365,10 @@  discard block
 block discarded – undo
365 365
 	public function stopTransform(array $params = [])
366 366
 	{
367 367
 		$this->checkRequiredParameters(['transform_id'], $params);
368
-		$url = '/_transform/' . $this->encode($params['transform_id']) . '/_stop';
368
+		$url = '/_transform/'.$this->encode($params['transform_id']).'/_stop';
369 369
 		$method = 'POST';
370 370
 
371
-		$url = $this->addQueryString($url, $params, ['force','wait_for_completion','timeout','allow_no_match','wait_for_checkpoint','pretty','human','error_trace','source','filter_path']);
371
+		$url = $this->addQueryString($url, $params, ['force', 'wait_for_completion', 'timeout', 'allow_no_match', 'wait_for_checkpoint', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
372 372
 		$headers = [
373 373
 			'Accept' => 'application/json',
374 374
 		];
@@ -402,11 +402,11 @@  discard block
 block discarded – undo
402 402
 	 */
403 403
 	public function updateTransform(array $params = [])
404 404
 	{
405
-		$this->checkRequiredParameters(['transform_id','body'], $params);
406
-		$url = '/_transform/' . $this->encode($params['transform_id']) . '/_update';
405
+		$this->checkRequiredParameters(['transform_id', 'body'], $params);
406
+		$url = '/_transform/'.$this->encode($params['transform_id']).'/_update';
407 407
 		$method = 'POST';
408 408
 
409
-		$url = $this->addQueryString($url, $params, ['defer_validation','timeout','pretty','human','error_trace','source','filter_path']);
409
+		$url = $this->addQueryString($url, $params, ['defer_validation', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
410 410
 		$headers = [
411 411
 			'Accept' => 'application/json',
412 412
 			'Content-Type' => 'application/json',
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
 		$url = '/_transform/_upgrade';
442 442
 		$method = 'POST';
443 443
 
444
-		$url = $this->addQueryString($url, $params, ['dry_run','timeout','pretty','human','error_trace','source','filter_path']);
444
+		$url = $this->addQueryString($url, $params, ['dry_run', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path']);
445 445
 		$headers = [
446 446
 			'Accept' => 'application/json',
447 447
 			'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 Transform extends AbstractEndpoint
30
-{
29
+class Transform extends AbstractEndpoint {
31 30
 	/**
32 31
 	 * Deletes an existing transform.
33 32
 	 *
Please login to merge, or discard this patch.