@@ -43,7 +43,7 @@ |
||
43 | 43 | $signer = new SignatureV4('es', $region); |
44 | 44 | $credProvider = $this->getCredentialProvider(); |
45 | 45 | |
46 | - return Middleware::mapRequest(function (RequestInterface $req) use ( |
|
46 | + return Middleware::mapRequest(function(RequestInterface $req) use ( |
|
47 | 47 | $signer, |
48 | 48 | $credProvider |
49 | 49 | ) { |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * @const string[] valid header options |
20 | 20 | */ |
21 | 21 | private static $HEADER_OPTIONS = ['index', 'types', 'search_type', |
22 | - 'routing', 'preference', ]; |
|
22 | + 'routing', 'preference', ]; |
|
23 | 23 | /** |
24 | 24 | * @var MultiBuilderInterface |
25 | 25 | */ |
@@ -206,7 +206,7 @@ |
||
206 | 206 | $string .= $source; |
207 | 207 | } elseif (is_array($source) && array_key_exists('doc', $source) && is_string($source['doc'])) { |
208 | 208 | if (isset($source['doc_as_upsert'])) { |
209 | - $docAsUpsert = ', "doc_as_upsert": ' . ($source['doc_as_upsert'] ? 'true' : 'false' ); |
|
209 | + $docAsUpsert = ', "doc_as_upsert": '.($source['doc_as_upsert'] ? 'true' : 'false'); |
|
210 | 210 | } else { |
211 | 211 | $docAsUpsert = ''; |
212 | 212 | } |
@@ -125,16 +125,16 @@ |
||
125 | 125 | return new Avg($name); |
126 | 126 | } |
127 | 127 | |
128 | - /** |
|
129 | - * avg bucket aggregation. |
|
130 | - * |
|
131 | - * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html |
|
132 | - * |
|
133 | - * @param string $name |
|
134 | - * @param string|null $bucketsPath |
|
135 | - * |
|
136 | - * @return AvgBucket |
|
137 | - */ |
|
128 | + /** |
|
129 | + * avg bucket aggregation. |
|
130 | + * |
|
131 | + * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html |
|
132 | + * |
|
133 | + * @param string $name |
|
134 | + * @param string|null $bucketsPath |
|
135 | + * |
|
136 | + * @return AvgBucket |
|
137 | + */ |
|
138 | 138 | public function avg_bucket($name, $bucketsPath = null) |
139 | 139 | { |
140 | 140 | return new AvgBucket($name, $bucketsPath); |