@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | public function aliases(array $params = []) |
59 | 59 | { |
60 | 60 | if (isset($params['name'])) { |
61 | - $url = '/_cat/aliases/' . $this->encode($params['name']); |
|
61 | + $url = '/_cat/aliases/'.$this->encode($params['name']); |
|
62 | 62 | $method = 'GET'; |
63 | 63 | } else { |
64 | 64 | $url = '/_cat/aliases'; |
65 | 65 | $method = 'GET'; |
66 | 66 | } |
67 | - $url = $this->addQueryString($url, $params, ['format','local','h','help','s','v','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
67 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'h', 'help', 's', 'v', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
68 | 68 | $headers = [ |
69 | 69 | 'Accept' => 'text/plain,application/json', |
70 | 70 | ]; |
@@ -103,13 +103,13 @@ discard block |
||
103 | 103 | public function allocation(array $params = []) |
104 | 104 | { |
105 | 105 | if (isset($params['node_id'])) { |
106 | - $url = '/_cat/allocation/' . $this->encode($params['node_id']); |
|
106 | + $url = '/_cat/allocation/'.$this->encode($params['node_id']); |
|
107 | 107 | $method = 'GET'; |
108 | 108 | } else { |
109 | 109 | $url = '/_cat/allocation'; |
110 | 110 | $method = 'GET'; |
111 | 111 | } |
112 | - $url = $this->addQueryString($url, $params, ['format','bytes','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
112 | + $url = $this->addQueryString($url, $params, ['format', 'bytes', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
113 | 113 | $headers = [ |
114 | 114 | 'Accept' => 'text/plain,application/json', |
115 | 115 | ]; |
@@ -147,13 +147,13 @@ discard block |
||
147 | 147 | public function componentTemplates(array $params = []) |
148 | 148 | { |
149 | 149 | if (isset($params['name'])) { |
150 | - $url = '/_cat/component_templates/' . $this->encode($params['name']); |
|
150 | + $url = '/_cat/component_templates/'.$this->encode($params['name']); |
|
151 | 151 | $method = 'GET'; |
152 | 152 | } else { |
153 | 153 | $url = '/_cat/component_templates'; |
154 | 154 | $method = 'GET'; |
155 | 155 | } |
156 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
156 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
157 | 157 | $headers = [ |
158 | 158 | 'Accept' => 'text/plain,application/json', |
159 | 159 | ]; |
@@ -189,13 +189,13 @@ discard block |
||
189 | 189 | public function count(array $params = []) |
190 | 190 | { |
191 | 191 | if (isset($params['index'])) { |
192 | - $url = '/_cat/count/' . $this->encode($params['index']); |
|
192 | + $url = '/_cat/count/'.$this->encode($params['index']); |
|
193 | 193 | $method = 'GET'; |
194 | 194 | } else { |
195 | 195 | $url = '/_cat/count'; |
196 | 196 | $method = 'GET'; |
197 | 197 | } |
198 | - $url = $this->addQueryString($url, $params, ['format','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
198 | + $url = $this->addQueryString($url, $params, ['format', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
199 | 199 | $headers = [ |
200 | 200 | 'Accept' => 'text/plain,application/json', |
201 | 201 | ]; |
@@ -232,13 +232,13 @@ discard block |
||
232 | 232 | public function fielddata(array $params = []) |
233 | 233 | { |
234 | 234 | if (isset($params['fields'])) { |
235 | - $url = '/_cat/fielddata/' . $this->encode($params['fields']); |
|
235 | + $url = '/_cat/fielddata/'.$this->encode($params['fields']); |
|
236 | 236 | $method = 'GET'; |
237 | 237 | } else { |
238 | 238 | $url = '/_cat/fielddata'; |
239 | 239 | $method = 'GET'; |
240 | 240 | } |
241 | - $url = $this->addQueryString($url, $params, ['format','bytes','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
241 | + $url = $this->addQueryString($url, $params, ['format', 'bytes', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
242 | 242 | $headers = [ |
243 | 243 | 'Accept' => 'text/plain,application/json', |
244 | 244 | ]; |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | $url = '/_cat/health'; |
278 | 278 | $method = 'GET'; |
279 | 279 | |
280 | - $url = $this->addQueryString($url, $params, ['format','h','help','s','time','ts','v','pretty','human','error_trace','source','filter_path']); |
|
280 | + $url = $this->addQueryString($url, $params, ['format', 'h', 'help', 's', 'time', 'ts', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
281 | 281 | $headers = [ |
282 | 282 | 'Accept' => 'text/plain,application/json', |
283 | 283 | ]; |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | $url = '/_cat'; |
312 | 312 | $method = 'GET'; |
313 | 313 | |
314 | - $url = $this->addQueryString($url, $params, ['help','s','pretty','human','error_trace','source','filter_path']); |
|
314 | + $url = $this->addQueryString($url, $params, ['help', 's', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
315 | 315 | $headers = [ |
316 | 316 | 'Accept' => 'text/plain', |
317 | 317 | ]; |
@@ -354,13 +354,13 @@ discard block |
||
354 | 354 | public function indices(array $params = []) |
355 | 355 | { |
356 | 356 | if (isset($params['index'])) { |
357 | - $url = '/_cat/indices/' . $this->encode($params['index']); |
|
357 | + $url = '/_cat/indices/'.$this->encode($params['index']); |
|
358 | 358 | $method = 'GET'; |
359 | 359 | } else { |
360 | 360 | $url = '/_cat/indices'; |
361 | 361 | $method = 'GET'; |
362 | 362 | } |
363 | - $url = $this->addQueryString($url, $params, ['format','bytes','master_timeout','h','health','help','pri','s','time','v','include_unloaded_segments','expand_wildcards','pretty','human','error_trace','source','filter_path']); |
|
363 | + $url = $this->addQueryString($url, $params, ['format', 'bytes', 'master_timeout', 'h', 'health', 'help', 'pri', 's', 'time', 'v', 'include_unloaded_segments', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
364 | 364 | $headers = [ |
365 | 365 | 'Accept' => 'text/plain,application/json', |
366 | 366 | ]; |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | $url = '/_cat/master'; |
400 | 400 | $method = 'GET'; |
401 | 401 | |
402 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
402 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
403 | 403 | $headers = [ |
404 | 404 | 'Accept' => 'text/plain,application/json', |
405 | 405 | ]; |
@@ -438,13 +438,13 @@ discard block |
||
438 | 438 | public function mlDataFrameAnalytics(array $params = []) |
439 | 439 | { |
440 | 440 | if (isset($params['id'])) { |
441 | - $url = '/_cat/ml/data_frame/analytics/' . $this->encode($params['id']); |
|
441 | + $url = '/_cat/ml/data_frame/analytics/'.$this->encode($params['id']); |
|
442 | 442 | $method = 'GET'; |
443 | 443 | } else { |
444 | 444 | $url = '/_cat/ml/data_frame/analytics'; |
445 | 445 | $method = 'GET'; |
446 | 446 | } |
447 | - $url = $this->addQueryString($url, $params, ['allow_no_match','bytes','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
447 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'bytes', 'format', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
448 | 448 | $headers = [ |
449 | 449 | 'Accept' => 'text/plain,application/json', |
450 | 450 | ]; |
@@ -482,13 +482,13 @@ discard block |
||
482 | 482 | public function mlDatafeeds(array $params = []) |
483 | 483 | { |
484 | 484 | if (isset($params['datafeed_id'])) { |
485 | - $url = '/_cat/ml/datafeeds/' . $this->encode($params['datafeed_id']); |
|
485 | + $url = '/_cat/ml/datafeeds/'.$this->encode($params['datafeed_id']); |
|
486 | 486 | $method = 'GET'; |
487 | 487 | } else { |
488 | 488 | $url = '/_cat/ml/datafeeds'; |
489 | 489 | $method = 'GET'; |
490 | 490 | } |
491 | - $url = $this->addQueryString($url, $params, ['allow_no_match','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
491 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'format', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
492 | 492 | $headers = [ |
493 | 493 | 'Accept' => 'text/plain,application/json', |
494 | 494 | ]; |
@@ -527,13 +527,13 @@ discard block |
||
527 | 527 | public function mlJobs(array $params = []) |
528 | 528 | { |
529 | 529 | if (isset($params['job_id'])) { |
530 | - $url = '/_cat/ml/anomaly_detectors/' . $this->encode($params['job_id']); |
|
530 | + $url = '/_cat/ml/anomaly_detectors/'.$this->encode($params['job_id']); |
|
531 | 531 | $method = 'GET'; |
532 | 532 | } else { |
533 | 533 | $url = '/_cat/ml/anomaly_detectors'; |
534 | 534 | $method = 'GET'; |
535 | 535 | } |
536 | - $url = $this->addQueryString($url, $params, ['allow_no_match','bytes','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
536 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'bytes', 'format', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
537 | 537 | $headers = [ |
538 | 538 | 'Accept' => 'text/plain,application/json', |
539 | 539 | ]; |
@@ -574,13 +574,13 @@ discard block |
||
574 | 574 | public function mlTrainedModels(array $params = []) |
575 | 575 | { |
576 | 576 | if (isset($params['model_id'])) { |
577 | - $url = '/_cat/ml/trained_models/' . $this->encode($params['model_id']); |
|
577 | + $url = '/_cat/ml/trained_models/'.$this->encode($params['model_id']); |
|
578 | 578 | $method = 'GET'; |
579 | 579 | } else { |
580 | 580 | $url = '/_cat/ml/trained_models'; |
581 | 581 | $method = 'GET'; |
582 | 582 | } |
583 | - $url = $this->addQueryString($url, $params, ['allow_no_match','from','size','bytes','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
583 | + $url = $this->addQueryString($url, $params, ['allow_no_match', 'from', 'size', 'bytes', 'format', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
584 | 584 | $headers = [ |
585 | 585 | 'Accept' => 'text/plain,application/json', |
586 | 586 | ]; |
@@ -619,7 +619,7 @@ discard block |
||
619 | 619 | $url = '/_cat/nodeattrs'; |
620 | 620 | $method = 'GET'; |
621 | 621 | |
622 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
622 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
623 | 623 | $headers = [ |
624 | 624 | 'Accept' => 'text/plain,application/json', |
625 | 625 | ]; |
@@ -661,7 +661,7 @@ discard block |
||
661 | 661 | $url = '/_cat/nodes'; |
662 | 662 | $method = 'GET'; |
663 | 663 | |
664 | - $url = $this->addQueryString($url, $params, ['bytes','format','full_id','master_timeout','h','help','s','time','v','include_unloaded_segments','pretty','human','error_trace','source','filter_path']); |
|
664 | + $url = $this->addQueryString($url, $params, ['bytes', 'format', 'full_id', 'master_timeout', 'h', 'help', 's', 'time', 'v', 'include_unloaded_segments', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
665 | 665 | $headers = [ |
666 | 666 | 'Accept' => 'text/plain,application/json', |
667 | 667 | ]; |
@@ -701,7 +701,7 @@ discard block |
||
701 | 701 | $url = '/_cat/pending_tasks'; |
702 | 702 | $method = 'GET'; |
703 | 703 | |
704 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
704 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
705 | 705 | $headers = [ |
706 | 706 | 'Accept' => 'text/plain,application/json', |
707 | 707 | ]; |
@@ -741,7 +741,7 @@ discard block |
||
741 | 741 | $url = '/_cat/plugins'; |
742 | 742 | $method = 'GET'; |
743 | 743 | |
744 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','include_bootstrap','s','v','pretty','human','error_trace','source','filter_path']); |
|
744 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 'include_bootstrap', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
745 | 745 | $headers = [ |
746 | 746 | 'Accept' => 'text/plain,application/json', |
747 | 747 | ]; |
@@ -781,13 +781,13 @@ discard block |
||
781 | 781 | public function recovery(array $params = []) |
782 | 782 | { |
783 | 783 | if (isset($params['index'])) { |
784 | - $url = '/_cat/recovery/' . $this->encode($params['index']); |
|
784 | + $url = '/_cat/recovery/'.$this->encode($params['index']); |
|
785 | 785 | $method = 'GET'; |
786 | 786 | } else { |
787 | 787 | $url = '/_cat/recovery'; |
788 | 788 | $method = 'GET'; |
789 | 789 | } |
790 | - $url = $this->addQueryString($url, $params, ['format','active_only','bytes','detailed','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
790 | + $url = $this->addQueryString($url, $params, ['format', 'active_only', 'bytes', 'detailed', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
791 | 791 | $headers = [ |
792 | 792 | 'Accept' => 'text/plain,application/json', |
793 | 793 | ]; |
@@ -826,7 +826,7 @@ discard block |
||
826 | 826 | $url = '/_cat/repositories'; |
827 | 827 | $method = 'GET'; |
828 | 828 | |
829 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
829 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
830 | 830 | $headers = [ |
831 | 831 | 'Accept' => 'text/plain,application/json', |
832 | 832 | ]; |
@@ -863,13 +863,13 @@ discard block |
||
863 | 863 | public function segments(array $params = []) |
864 | 864 | { |
865 | 865 | if (isset($params['index'])) { |
866 | - $url = '/_cat/segments/' . $this->encode($params['index']); |
|
866 | + $url = '/_cat/segments/'.$this->encode($params['index']); |
|
867 | 867 | $method = 'GET'; |
868 | 868 | } else { |
869 | 869 | $url = '/_cat/segments'; |
870 | 870 | $method = 'GET'; |
871 | 871 | } |
872 | - $url = $this->addQueryString($url, $params, ['format','bytes','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
872 | + $url = $this->addQueryString($url, $params, ['format', 'bytes', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
873 | 873 | $headers = [ |
874 | 874 | 'Accept' => 'text/plain,application/json', |
875 | 875 | ]; |
@@ -908,13 +908,13 @@ discard block |
||
908 | 908 | public function shards(array $params = []) |
909 | 909 | { |
910 | 910 | if (isset($params['index'])) { |
911 | - $url = '/_cat/shards/' . $this->encode($params['index']); |
|
911 | + $url = '/_cat/shards/'.$this->encode($params['index']); |
|
912 | 912 | $method = 'GET'; |
913 | 913 | } else { |
914 | 914 | $url = '/_cat/shards'; |
915 | 915 | $method = 'GET'; |
916 | 916 | } |
917 | - $url = $this->addQueryString($url, $params, ['format','bytes','master_timeout','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
917 | + $url = $this->addQueryString($url, $params, ['format', 'bytes', 'master_timeout', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
918 | 918 | $headers = [ |
919 | 919 | 'Accept' => 'text/plain,application/json', |
920 | 920 | ]; |
@@ -953,13 +953,13 @@ discard block |
||
953 | 953 | public function snapshots(array $params = []) |
954 | 954 | { |
955 | 955 | if (isset($params['repository'])) { |
956 | - $url = '/_cat/snapshots/' . $this->encode($params['repository']); |
|
956 | + $url = '/_cat/snapshots/'.$this->encode($params['repository']); |
|
957 | 957 | $method = 'GET'; |
958 | 958 | } else { |
959 | 959 | $url = '/_cat/snapshots'; |
960 | 960 | $method = 'GET'; |
961 | 961 | } |
962 | - $url = $this->addQueryString($url, $params, ['format','ignore_unavailable','master_timeout','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
962 | + $url = $this->addQueryString($url, $params, ['format', 'ignore_unavailable', 'master_timeout', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
963 | 963 | $headers = [ |
964 | 964 | 'Accept' => 'text/plain,application/json', |
965 | 965 | ]; |
@@ -1002,7 +1002,7 @@ discard block |
||
1002 | 1002 | $url = '/_cat/tasks'; |
1003 | 1003 | $method = 'GET'; |
1004 | 1004 | |
1005 | - $url = $this->addQueryString($url, $params, ['format','nodes','actions','detailed','parent_task_id','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
1005 | + $url = $this->addQueryString($url, $params, ['format', 'nodes', 'actions', 'detailed', 'parent_task_id', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1006 | 1006 | $headers = [ |
1007 | 1007 | 'Accept' => 'text/plain,application/json', |
1008 | 1008 | ]; |
@@ -1040,13 +1040,13 @@ discard block |
||
1040 | 1040 | public function templates(array $params = []) |
1041 | 1041 | { |
1042 | 1042 | if (isset($params['name'])) { |
1043 | - $url = '/_cat/templates/' . $this->encode($params['name']); |
|
1043 | + $url = '/_cat/templates/'.$this->encode($params['name']); |
|
1044 | 1044 | $method = 'GET'; |
1045 | 1045 | } else { |
1046 | 1046 | $url = '/_cat/templates'; |
1047 | 1047 | $method = 'GET'; |
1048 | 1048 | } |
1049 | - $url = $this->addQueryString($url, $params, ['format','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
1049 | + $url = $this->addQueryString($url, $params, ['format', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1050 | 1050 | $headers = [ |
1051 | 1051 | 'Accept' => 'text/plain,application/json', |
1052 | 1052 | ]; |
@@ -1086,13 +1086,13 @@ discard block |
||
1086 | 1086 | public function threadPool(array $params = []) |
1087 | 1087 | { |
1088 | 1088 | if (isset($params['thread_pool_patterns'])) { |
1089 | - $url = '/_cat/thread_pool/' . $this->encode($params['thread_pool_patterns']); |
|
1089 | + $url = '/_cat/thread_pool/'.$this->encode($params['thread_pool_patterns']); |
|
1090 | 1090 | $method = 'GET'; |
1091 | 1091 | } else { |
1092 | 1092 | $url = '/_cat/thread_pool'; |
1093 | 1093 | $method = 'GET'; |
1094 | 1094 | } |
1095 | - $url = $this->addQueryString($url, $params, ['format','time','local','master_timeout','h','help','s','v','pretty','human','error_trace','source','filter_path']); |
|
1095 | + $url = $this->addQueryString($url, $params, ['format', 'time', 'local', 'master_timeout', 'h', 'help', 's', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1096 | 1096 | $headers = [ |
1097 | 1097 | 'Accept' => 'text/plain,application/json', |
1098 | 1098 | ]; |
@@ -1132,13 +1132,13 @@ discard block |
||
1132 | 1132 | public function transforms(array $params = []) |
1133 | 1133 | { |
1134 | 1134 | if (isset($params['transform_id'])) { |
1135 | - $url = '/_cat/transforms/' . $this->encode($params['transform_id']); |
|
1135 | + $url = '/_cat/transforms/'.$this->encode($params['transform_id']); |
|
1136 | 1136 | $method = 'GET'; |
1137 | 1137 | } else { |
1138 | 1138 | $url = '/_cat/transforms'; |
1139 | 1139 | $method = 'GET'; |
1140 | 1140 | } |
1141 | - $url = $this->addQueryString($url, $params, ['from','size','allow_no_match','format','h','help','s','time','v','pretty','human','error_trace','source','filter_path']); |
|
1141 | + $url = $this->addQueryString($url, $params, ['from', 'size', 'allow_no_match', 'format', 'h', 'help', 's', 'time', 'v', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
1142 | 1142 | $headers = [ |
1143 | 1143 | 'Accept' => 'text/plain,application/json', |
1144 | 1144 | ]; |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Cat extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Cat extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Shows information about currently configured aliases to indices including filter and routing infos. |
33 | 32 | * |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | public function deleteAutoFollowPattern(array $params = []) |
53 | 53 | { |
54 | 54 | $this->checkRequiredParameters(['name'], $params); |
55 | - $url = '/_ccr/auto_follow/' . $this->encode($params['name']); |
|
55 | + $url = '/_ccr/auto_follow/'.$this->encode($params['name']); |
|
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 | ]; |
@@ -88,11 +88,11 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function follow(array $params = []) |
90 | 90 | { |
91 | - $this->checkRequiredParameters(['index','body'], $params); |
|
92 | - $url = '/' . $this->encode($params['index']) . '/_ccr/follow'; |
|
91 | + $this->checkRequiredParameters(['index', 'body'], $params); |
|
92 | + $url = '/'.$this->encode($params['index']).'/_ccr/follow'; |
|
93 | 93 | $method = 'PUT'; |
94 | 94 | |
95 | - $url = $this->addQueryString($url, $params, ['wait_for_active_shards','pretty','human','error_trace','source','filter_path']); |
|
95 | + $url = $this->addQueryString($url, $params, ['wait_for_active_shards', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
96 | 96 | $headers = [ |
97 | 97 | 'Accept' => 'application/json', |
98 | 98 | 'Content-Type' => 'application/json', |
@@ -125,10 +125,10 @@ discard block |
||
125 | 125 | public function followInfo(array $params = []) |
126 | 126 | { |
127 | 127 | $this->checkRequiredParameters(['index'], $params); |
128 | - $url = '/' . $this->encode($params['index']) . '/_ccr/info'; |
|
128 | + $url = '/'.$this->encode($params['index']).'/_ccr/info'; |
|
129 | 129 | $method = 'GET'; |
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 | ]; |
@@ -160,10 +160,10 @@ discard block |
||
160 | 160 | public function followStats(array $params = []) |
161 | 161 | { |
162 | 162 | $this->checkRequiredParameters(['index'], $params); |
163 | - $url = '/' . $this->encode($params['index']) . '/_ccr/stats'; |
|
163 | + $url = '/'.$this->encode($params['index']).'/_ccr/stats'; |
|
164 | 164 | $method = 'GET'; |
165 | 165 | |
166 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
166 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
167 | 167 | $headers = [ |
168 | 168 | 'Accept' => 'application/json', |
169 | 169 | ]; |
@@ -195,11 +195,11 @@ discard block |
||
195 | 195 | */ |
196 | 196 | public function forgetFollower(array $params = []) |
197 | 197 | { |
198 | - $this->checkRequiredParameters(['index','body'], $params); |
|
199 | - $url = '/' . $this->encode($params['index']) . '/_ccr/forget_follower'; |
|
198 | + $this->checkRequiredParameters(['index', 'body'], $params); |
|
199 | + $url = '/'.$this->encode($params['index']).'/_ccr/forget_follower'; |
|
200 | 200 | $method = 'POST'; |
201 | 201 | |
202 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
202 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
203 | 203 | $headers = [ |
204 | 204 | 'Accept' => 'application/json', |
205 | 205 | 'Content-Type' => 'application/json', |
@@ -231,13 +231,13 @@ discard block |
||
231 | 231 | public function getAutoFollowPattern(array $params = []) |
232 | 232 | { |
233 | 233 | if (isset($params['name'])) { |
234 | - $url = '/_ccr/auto_follow/' . $this->encode($params['name']); |
|
234 | + $url = '/_ccr/auto_follow/'.$this->encode($params['name']); |
|
235 | 235 | $method = 'GET'; |
236 | 236 | } else { |
237 | 237 | $url = '/_ccr/auto_follow'; |
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 | ]; |
@@ -269,10 +269,10 @@ discard block |
||
269 | 269 | public function pauseAutoFollowPattern(array $params = []) |
270 | 270 | { |
271 | 271 | $this->checkRequiredParameters(['name'], $params); |
272 | - $url = '/_ccr/auto_follow/' . $this->encode($params['name']) . '/pause'; |
|
272 | + $url = '/_ccr/auto_follow/'.$this->encode($params['name']).'/pause'; |
|
273 | 273 | $method = 'POST'; |
274 | 274 | |
275 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
275 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
276 | 276 | $headers = [ |
277 | 277 | 'Accept' => 'application/json', |
278 | 278 | ]; |
@@ -304,10 +304,10 @@ discard block |
||
304 | 304 | public function pauseFollow(array $params = []) |
305 | 305 | { |
306 | 306 | $this->checkRequiredParameters(['index'], $params); |
307 | - $url = '/' . $this->encode($params['index']) . '/_ccr/pause_follow'; |
|
307 | + $url = '/'.$this->encode($params['index']).'/_ccr/pause_follow'; |
|
308 | 308 | $method = 'POST'; |
309 | 309 | |
310 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
310 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
311 | 311 | $headers = [ |
312 | 312 | 'Accept' => 'application/json', |
313 | 313 | ]; |
@@ -339,11 +339,11 @@ discard block |
||
339 | 339 | */ |
340 | 340 | public function putAutoFollowPattern(array $params = []) |
341 | 341 | { |
342 | - $this->checkRequiredParameters(['name','body'], $params); |
|
343 | - $url = '/_ccr/auto_follow/' . $this->encode($params['name']); |
|
342 | + $this->checkRequiredParameters(['name', 'body'], $params); |
|
343 | + $url = '/_ccr/auto_follow/'.$this->encode($params['name']); |
|
344 | 344 | $method = 'PUT'; |
345 | 345 | |
346 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
346 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
347 | 347 | $headers = [ |
348 | 348 | 'Accept' => 'application/json', |
349 | 349 | 'Content-Type' => 'application/json', |
@@ -376,10 +376,10 @@ discard block |
||
376 | 376 | public function resumeAutoFollowPattern(array $params = []) |
377 | 377 | { |
378 | 378 | $this->checkRequiredParameters(['name'], $params); |
379 | - $url = '/_ccr/auto_follow/' . $this->encode($params['name']) . '/resume'; |
|
379 | + $url = '/_ccr/auto_follow/'.$this->encode($params['name']).'/resume'; |
|
380 | 380 | $method = 'POST'; |
381 | 381 | |
382 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
382 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
383 | 383 | $headers = [ |
384 | 384 | 'Accept' => 'application/json', |
385 | 385 | ]; |
@@ -412,10 +412,10 @@ discard block |
||
412 | 412 | public function resumeFollow(array $params = []) |
413 | 413 | { |
414 | 414 | $this->checkRequiredParameters(['index'], $params); |
415 | - $url = '/' . $this->encode($params['index']) . '/_ccr/resume_follow'; |
|
415 | + $url = '/'.$this->encode($params['index']).'/_ccr/resume_follow'; |
|
416 | 416 | $method = 'POST'; |
417 | 417 | |
418 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
418 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
419 | 419 | $headers = [ |
420 | 420 | 'Accept' => 'application/json', |
421 | 421 | 'Content-Type' => 'application/json', |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | $url = '/_ccr/stats'; |
449 | 449 | $method = 'GET'; |
450 | 450 | |
451 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
451 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
452 | 452 | $headers = [ |
453 | 453 | 'Accept' => 'application/json', |
454 | 454 | ]; |
@@ -480,10 +480,10 @@ discard block |
||
480 | 480 | public function unfollow(array $params = []) |
481 | 481 | { |
482 | 482 | $this->checkRequiredParameters(['index'], $params); |
483 | - $url = '/' . $this->encode($params['index']) . '/_ccr/unfollow'; |
|
483 | + $url = '/'.$this->encode($params['index']).'/_ccr/unfollow'; |
|
484 | 484 | $method = 'POST'; |
485 | 485 | |
486 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
486 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
487 | 487 | $headers = [ |
488 | 488 | 'Accept' => 'application/json', |
489 | 489 | ]; |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Ccr extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Ccr extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Deletes auto-follow patterns. |
33 | 32 | * |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | public function deleteAutoscalingPolicy(array $params = []) |
53 | 53 | { |
54 | 54 | $this->checkRequiredParameters(['name'], $params); |
55 | - $url = '/_autoscaling/policy/' . $this->encode($params['name']); |
|
55 | + $url = '/_autoscaling/policy/'.$this->encode($params['name']); |
|
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,7 +87,7 @@ discard block |
||
87 | 87 | $url = '/_autoscaling/capacity'; |
88 | 88 | $method = 'GET'; |
89 | 89 | |
90 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
90 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
91 | 91 | $headers = [ |
92 | 92 | 'Accept' => 'application/json', |
93 | 93 | ]; |
@@ -119,10 +119,10 @@ discard block |
||
119 | 119 | public function getAutoscalingPolicy(array $params = []) |
120 | 120 | { |
121 | 121 | $this->checkRequiredParameters(['name'], $params); |
122 | - $url = '/_autoscaling/policy/' . $this->encode($params['name']); |
|
122 | + $url = '/_autoscaling/policy/'.$this->encode($params['name']); |
|
123 | 123 | $method = 'GET'; |
124 | 124 | |
125 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
125 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
126 | 126 | $headers = [ |
127 | 127 | 'Accept' => 'application/json', |
128 | 128 | ]; |
@@ -154,11 +154,11 @@ discard block |
||
154 | 154 | */ |
155 | 155 | public function putAutoscalingPolicy(array $params = []) |
156 | 156 | { |
157 | - $this->checkRequiredParameters(['name','body'], $params); |
|
158 | - $url = '/_autoscaling/policy/' . $this->encode($params['name']); |
|
157 | + $this->checkRequiredParameters(['name', 'body'], $params); |
|
158 | + $url = '/_autoscaling/policy/'.$this->encode($params['name']); |
|
159 | 159 | $method = 'PUT'; |
160 | 160 | |
161 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
161 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
162 | 162 | $headers = [ |
163 | 163 | 'Accept' => 'application/json', |
164 | 164 | 'Content-Type' => 'application/json', |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Autoscaling extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Autoscaling extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported. |
33 | 32 | * |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $url = '/_profiling/flamegraph'; |
55 | 55 | $method = 'POST'; |
56 | 56 | |
57 | - $url = $this->addQueryString($url, $params, ['pretty','human','error_trace','source','filter_path']); |
|
57 | + $url = $this->addQueryString($url, $params, ['pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
58 | 58 | $headers = [ |
59 | 59 | 'Accept' => 'application/json', |
60 | 60 | 'Content-Type' => 'application/json' |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $url = '/_profiling/stacktraces'; |
90 | 90 | $method = 'POST'; |
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 | 'Content-Type' => 'application/json' |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | $url = '/_profiling/status'; |
126 | 126 | $method = 'GET'; |
127 | 127 | |
128 | - $url = $this->addQueryString($url, $params, ['master_timeout','timeout','wait_for_resources_created','pretty','human','error_trace','source','filter_path']); |
|
128 | + $url = $this->addQueryString($url, $params, ['master_timeout', 'timeout', 'wait_for_resources_created', 'pretty', 'human', 'error_trace', 'source', 'filter_path']); |
|
129 | 129 | $headers = [ |
130 | 130 | 'Accept' => 'application/json', |
131 | 131 | ]; |
@@ -26,8 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * @generated This file is generated, please do not edit |
28 | 28 | */ |
29 | -class Profiling extends AbstractEndpoint |
|
30 | -{ |
|
29 | +class Profiling extends AbstractEndpoint { |
|
31 | 30 | /** |
32 | 31 | * Extracts a UI-optimized structure to render flamegraphs from Universal Profiling. |
33 | 32 | * |
@@ -16,47 +16,47 @@ |
||
16 | 16 | |
17 | 17 | class Utility |
18 | 18 | { |
19 | - const ENV_URL_PLUS_AS_SPACE = 'ELASTIC_CLIENT_URL_PLUS_AS_SPACE'; |
|
19 | + const ENV_URL_PLUS_AS_SPACE = 'ELASTIC_CLIENT_URL_PLUS_AS_SPACE'; |
|
20 | 20 | |
21 | - /** |
|
22 | - * Get the ENV variable with a thread safe fallback criteria |
|
23 | - * @see https://github.com/elastic/elasticsearch-php/issues/1237 |
|
24 | - * |
|
25 | - * @return string | false |
|
26 | - */ |
|
27 | - public static function getEnv(string $env) |
|
28 | - { |
|
29 | - return $_SERVER[$env] ?? $_ENV[$env] ?? getenv($env); |
|
30 | - } |
|
21 | + /** |
|
22 | + * Get the ENV variable with a thread safe fallback criteria |
|
23 | + * @see https://github.com/elastic/elasticsearch-php/issues/1237 |
|
24 | + * |
|
25 | + * @return string | false |
|
26 | + */ |
|
27 | + public static function getEnv(string $env) |
|
28 | + { |
|
29 | + return $_SERVER[$env] ?? $_ENV[$env] ?? getenv($env); |
|
30 | + } |
|
31 | 31 | |
32 | - /** |
|
33 | - * Encode a string in URL using urlencode() or rawurlencode() |
|
34 | - * according to ENV_URL_PLUS_AS_SPACE. |
|
35 | - * If ENV_URL_PLUS_AS_SPACE is not defined or true use urlencode(), |
|
36 | - * otherwise use rawurlencode() |
|
37 | - * |
|
38 | - * @see https://github.com/elastic/elasticsearch-php/issues/1278 |
|
39 | - * @deprecated will be replaced by PHP function rawurlencode() |
|
40 | - */ |
|
41 | - public static function urlencode(string $url): string |
|
42 | - { |
|
43 | - $plusAsSpace = self::getEnv(self::ENV_URL_PLUS_AS_SPACE); |
|
44 | - return $plusAsSpace === false || $plusAsSpace === 'true' |
|
45 | - ? urlencode($url) |
|
46 | - : rawurlencode($url); |
|
47 | - } |
|
32 | + /** |
|
33 | + * Encode a string in URL using urlencode() or rawurlencode() |
|
34 | + * according to ENV_URL_PLUS_AS_SPACE. |
|
35 | + * If ENV_URL_PLUS_AS_SPACE is not defined or true use urlencode(), |
|
36 | + * otherwise use rawurlencode() |
|
37 | + * |
|
38 | + * @see https://github.com/elastic/elasticsearch-php/issues/1278 |
|
39 | + * @deprecated will be replaced by PHP function rawurlencode() |
|
40 | + */ |
|
41 | + public static function urlencode(string $url): string |
|
42 | + { |
|
43 | + $plusAsSpace = self::getEnv(self::ENV_URL_PLUS_AS_SPACE); |
|
44 | + return $plusAsSpace === false || $plusAsSpace === 'true' |
|
45 | + ? urlencode($url) |
|
46 | + : rawurlencode($url); |
|
47 | + } |
|
48 | 48 | |
49 | - /** |
|
50 | - * Remove all the characters not valid for a PHP variable name |
|
51 | - * The valid characters are: a-z, A-Z, 0-9 and _ (underscore) |
|
52 | - * The variable name CANNOT start with a number |
|
53 | - */ |
|
54 | - public static function formatVariableName(string $var): string |
|
55 | - { |
|
56 | - // If the first character is a digit, we append the underscore |
|
57 | - if (is_int($var[0])) { |
|
58 | - $var = '_' . $var; |
|
59 | - } |
|
60 | - return preg_replace('/[^a-zA-Z0-9_]/', '', $var); |
|
61 | - } |
|
49 | + /** |
|
50 | + * Remove all the characters not valid for a PHP variable name |
|
51 | + * The valid characters are: a-z, A-Z, 0-9 and _ (underscore) |
|
52 | + * The variable name CANNOT start with a number |
|
53 | + */ |
|
54 | + public static function formatVariableName(string $var): string |
|
55 | + { |
|
56 | + // If the first character is a digit, we append the underscore |
|
57 | + if (is_int($var[0])) { |
|
58 | + $var = '_' . $var; |
|
59 | + } |
|
60 | + return preg_replace('/[^a-zA-Z0-9_]/', '', $var); |
|
61 | + } |
|
62 | 62 | } |
63 | 63 | \ No newline at end of file |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | * Elasticsearch B.V licenses this file to you under the MIT License. |
11 | 11 | * See the LICENSE file in the project root for more information. |
12 | 12 | */ |
13 | -declare(strict_types = 1); |
|
13 | +declare(strict_types=1); |
|
14 | 14 | |
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch; |
16 | 16 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | { |
56 | 56 | // If the first character is a digit, we append the underscore |
57 | 57 | if (is_int($var[0])) { |
58 | - $var = '_' . $var; |
|
58 | + $var = '_'.$var; |
|
59 | 59 | } |
60 | 60 | return preg_replace('/[^a-zA-Z0-9_]/', '', $var); |
61 | 61 | } |
@@ -14,8 +14,7 @@ |
||
14 | 14 | |
15 | 15 | namespace OCA\FullTextSearch_Elasticsearch\Vendor\Elastic\Elasticsearch; |
16 | 16 | |
17 | -class Utility |
|
18 | -{ |
|
17 | +class Utility { |
|
19 | 18 | const ENV_URL_PLUS_AS_SPACE = 'ELASTIC_CLIENT_URL_PLUS_AS_SPACE'; |
20 | 19 | |
21 | 20 | /** |
@@ -22,5 +22,5 @@ |
||
22 | 22 | */ |
23 | 23 | class ServerResponseException extends Exception implements ElasticsearchException |
24 | 24 | { |
25 | - use ResponseTrait; |
|
25 | + use ResponseTrait; |
|
26 | 26 | } |
27 | 27 | \ No newline at end of file |
@@ -20,7 +20,6 @@ |
||
20 | 20 | /** |
21 | 21 | * HTTP server error with 5xx status code |
22 | 22 | */ |
23 | -class ServerResponseException extends Exception implements ElasticsearchException |
|
24 | -{ |
|
23 | +class ServerResponseException extends Exception implements ElasticsearchException { |
|
25 | 24 | use ResponseTrait; |
26 | 25 | } |
27 | 26 | \ No newline at end of file |
@@ -16,7 +16,6 @@ |
||
16 | 16 | |
17 | 17 | use Throwable; |
18 | 18 | |
19 | -interface ElasticsearchException extends Throwable |
|
20 | -{ |
|
19 | +interface ElasticsearchException extends Throwable { |
|
21 | 20 | |
22 | 21 | } |
23 | 22 | \ No newline at end of file |
@@ -16,7 +16,6 @@ |
||
16 | 16 | |
17 | 17 | use Exception; |
18 | 18 | |
19 | -class HttpClientException extends Exception implements ElasticsearchException |
|
20 | -{ |
|
19 | +class HttpClientException extends Exception implements ElasticsearchException { |
|
21 | 20 | |
22 | 21 | } |
23 | 22 | \ No newline at end of file |
@@ -22,5 +22,5 @@ |
||
22 | 22 | */ |
23 | 23 | class ClientResponseException extends Exception implements ElasticsearchException |
24 | 24 | { |
25 | - use ResponseTrait; |
|
25 | + use ResponseTrait; |
|
26 | 26 | } |
27 | 27 | \ No newline at end of file |
@@ -20,7 +20,6 @@ |
||
20 | 20 | /** |
21 | 21 | * HTTP client error with 4xx status code |
22 | 22 | */ |
23 | -class ClientResponseException extends Exception implements ElasticsearchException |
|
24 | -{ |
|
23 | +class ClientResponseException extends Exception implements ElasticsearchException { |
|
25 | 24 | use ResponseTrait; |
26 | 25 | } |
27 | 26 | \ No newline at end of file |