Passed
Push — master ( a61d9f...19645a )
by
unknown
04:21 queued 12s
created
src/Manticoresearch/Endpoints/Indices/Create.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,17 +36,17 @@
 block discarded – undo
36 36
                 foreach ($params['settings'] as $name => $value) {
37 37
                     if (is_array($value)) {
38 38
                         foreach ($value as $v) {
39
-                            $options.=" ".$name." = '".$v."'";
39
+                            $options .= " " . $name . " = '" . $v . "'";
40 40
                         }
41 41
                     } else {
42
-                        $options.=" ".$name." = '".$value."'";
42
+                        $options .= " " . $name . " = '" . $value . "'";
43 43
                     }
44 44
                 }
45 45
             }
46
-            return parent::setBody(['query' => "CREATE TABLE ".
47
-                (isset($params['silent']) && $params['silent']===true?' IF NOT EXISTS ':'').
48
-                $this->index.
49
-                (count($columns)>0?"(".implode(",", $columns).")":" ")
46
+            return parent::setBody(['query' => "CREATE TABLE " .
47
+                (isset($params['silent']) && $params['silent'] === true ? ' IF NOT EXISTS ' : '') .
48
+                $this->index .
49
+                (count($columns) > 0 ? "(" . implode(",", $columns) . ")" : " ")
50 50
                 .$options]);
51 51
         }
52 52
         throw new RuntimeException('Index name is missing.');
Please login to merge, or discard this patch.