Passed
Push — master ( 38354f...943da3 )
by Adrian
02:16
created
src/Manticoresearch/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     public function __construct($params = [])
34 34
     {
35
-        if (count($params)>0) {
35
+        if (count($params) > 0) {
36 36
             $this->setBody($params['body'] ?? []);
37 37
             $this->setQuery($params['query'] ?? []);
38 38
             $this->setContentType($params['content_type'] ?? 'application/json');
Please login to merge, or discard this patch.
src/Manticoresearch/Index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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);
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 
235 235
     public function alter($operation, $name, $type = null)
236 236
     {
237
-        if ($operation==='add') {
237
+        if ($operation === 'add') {
238 238
             $params = [
239 239
                 'index' => $this->index,
240 240
                 'body' => [
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                     'column' => ['name' => $name, 'type' => $type]
243 243
                 ]
244 244
             ];
245
-        } elseif ($operation==='drop') {
245
+        } elseif ($operation === 'drop') {
246 246
             $params = [
247 247
                 'index' => $this->index,
248 248
                 'body' => [
Please login to merge, or discard this patch.