@@ -56,9 +56,9 @@ public function delete(array $params = [])
56
56
$ method = 'DELETE ' ;
57
57
58
58
$ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
59
- $ headers = array (
60
- 'Accept ' => 'application/json ' ,
61
- ) ;
59
+ $ headers = [
60
+ 'Accept ' => 'application/json ' ,
61
+ ] ;
62
62
return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
63
63
}
64
64
@@ -94,9 +94,9 @@ public function get(array $params = [])
94
94
$ method = 'GET ' ;
95
95
96
96
$ url = $ this ->addQueryString ($ url , $ params , ['wait_for_completion_timeout ' ,'keep_alive ' ,'typed_keys ' ,'pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
97
- $ headers = array (
98
- 'Accept ' => 'application/json ' ,
99
- ) ;
97
+ $ headers = [
98
+ 'Accept ' => 'application/json ' ,
99
+ ] ;
100
100
return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
101
101
}
102
102
@@ -129,9 +129,9 @@ public function status(array $params = [])
129
129
$ method = 'GET ' ;
130
130
131
131
$ url = $ this ->addQueryString ($ url , $ params , ['pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
132
- $ headers = array (
133
- 'Accept ' => 'application/json ' ,
134
- ) ;
132
+ $ headers = [
133
+ 'Accept ' => 'application/json ' ,
134
+ ] ;
135
135
return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
136
136
}
137
137
@@ -209,10 +209,10 @@ public function submit(array $params = [])
209
209
$ method = 'POST ' ;
210
210
}
211
211
$ url = $ this ->addQueryString ($ url , $ params , ['wait_for_completion_timeout ' ,'keep_on_completion ' ,'keep_alive ' ,'batched_reduce_size ' ,'request_cache ' ,'analyzer ' ,'analyze_wildcard ' ,'default_operator ' ,'df ' ,'explain ' ,'stored_fields ' ,'docvalue_fields ' ,'from ' ,'ignore_unavailable ' ,'ignore_throttled ' ,'allow_no_indices ' ,'expand_wildcards ' ,'lenient ' ,'preference ' ,'q ' ,'routing ' ,'search_type ' ,'size ' ,'sort ' ,'_source ' ,'_source_excludes ' ,'_source_includes ' ,'terminate_after ' ,'stats ' ,'suggest_field ' ,'suggest_mode ' ,'suggest_size ' ,'suggest_text ' ,'timeout ' ,'track_scores ' ,'track_total_hits ' ,'allow_partial_search_results ' ,'typed_keys ' ,'version ' ,'seq_no_primary_term ' ,'max_concurrent_shard_requests ' ,'pretty ' ,'human ' ,'error_trace ' ,'source ' ,'filter_path ' ]);
212
- $ headers = array (
213
- 'Accept ' => 'application/json ' ,
214
- 'Content-Type ' => 'application/json ' ,
215
- ) ;
212
+ $ headers = [
213
+ 'Accept ' => 'application/json ' ,
214
+ 'Content-Type ' => 'application/json ' ,
215
+ ] ;
216
216
return $ this ->client ->sendRequest ($ this ->createRequest ($ method , $ url , $ headers , $ params ['body ' ] ?? null ));
217
217
}
218
218
}
0 commit comments