Completed
Push — master ( 9be4be...7ff420 )
by Adrian
02:23
created
src/Manticoresearch/Index.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
     public function deleteDocuments($query)
89 89
     {
90
-        if($query instanceof Query) {
90
+        if ($query instanceof Query) {
91 91
             $query = $query->toArray();
92 92
         }
93 93
         $params = [
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
     public function updateDocuments($data, $query)
115 115
     {
116
-        if($query instanceof Query) {
116
+        if ($query instanceof Query) {
117 117
             $query = $query->toArray();
118 118
         }
119 119
         $params = [
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         return $this->_client->bulk(['body' => $toreplace]);
156 156
     }
157 157
 
158
-    public function create($fields, $settings = [],$silent=false)
158
+    public function create($fields, $settings = [], $silent = false)
159 159
     {
160 160
         $params = [
161 161
             'index' => $this->_index,
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
                 'settings' => $settings
165 165
             ]
166 166
         ];
167
-        if($silent===true) {
167
+        if ($silent === true) {
168 168
             $params['body']['silent'] = true;
169 169
         }
170 170
         return $this->_client->indices()->create($params);
@@ -232,9 +232,9 @@  discard block
 block discarded – undo
232 232
         $this->_client->indices()->flushramchunk($params);
233 233
     }
234 234
 
235
-    public function alter($operation,$name, $type)
235
+    public function alter($operation, $name, $type)
236 236
     {
237
-        if($operation==='add') {
237
+        if ($operation === 'add') {
238 238
             $params = [
239 239
                 'index' => $this->_index,
240 240
                 'body' => [
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
                 ]
244 244
             ];
245 245
 
246
-        }elseif($operation==='drop'){
246
+        }elseif ($operation === 'drop') {
247 247
             $params = [
248 248
                 'index' => $this->_index,
249 249
                 'body' => [
Please login to merge, or discard this patch.