Completed
Pull Request — master (#1422)
by Gabriel
04:35
created
lib/Elastica/Transport/AwsAuthV4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
         ) {
Please login to merge, or discard this patch.
lib/Elastica/Multi/Search.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
lib/Elastica/Bulk/Action.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
lib/Elastica/QueryBuilder/DSL/Aggregation.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -125,16 +125,16 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.