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