Passed
Push — master ( a55e50...92c504 )
by
unknown
02:39
created
src/Manticoresearch/Endpoints/Nodes/Variables.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
     {
17 17
         $option = "";
18 18
         if (isset($params['pattern'])) {
19
-            $option = "LIKE '".$params['pattern']."'";
19
+            $option = "LIKE '" . $params['pattern'] . "'";
20 20
         }
21 21
         if (isset($params['where'])) {
22
-            $option = "WHERE variable_name='".$params['where']['variable_name']."'";
22
+            $option = "WHERE variable_name='" . $params['where']['variable_name'] . "'";
23 23
         }
24
-        return parent::setBody(['query' => "SHOW ".($params['type'] ?? '')." VARIABLES ".$option]);
24
+        return parent::setBody(['query' => "SHOW " . ($params['type'] ?? '') . " VARIABLES " . $option]);
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Manticoresearch/Query/BoolQuery.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@
 block discarded – undo
9 9
 {
10 10
     public function must($args):self
11 11
     {
12
-        $this->params['must'][]= $args;
12
+        $this->params['must'][] = $args;
13 13
         return $this;
14 14
     }
15 15
     public function mustNot($args):self
16 16
     {
17
-        $this->params['must_not'][]= $args;
17
+        $this->params['must_not'][] = $args;
18 18
         return $this;
19 19
     }
20 20
     public function should($args):self
21 21
     {
22
-        $this->params['should'][]= $args;
22
+        $this->params['should'][] = $args;
23 23
         return $this;
24 24
     }
25 25
     public function toArray()
Please login to merge, or discard this patch.
src/Manticoresearch/Query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             } elseif (is_array($v)) {
27 27
                 $return[$k] = $this->convertArray($v);
28 28
             } else {
29
-                if ($v!==null) {
29
+                if ($v !== null) {
30 30
                     $return[$k] = $v;
31 31
                 } else {
32 32
                     return null;
Please login to merge, or discard this patch.
src/Manticoresearch/Endpoints/ExplainQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         if (isset($this->index)) {
20 20
             if (isset($params['query'])) {
21
-                return parent::setBody(['query' => "EXPLAIN QUERY ".$this->index. '\''.$params['query'].'\'']);
21
+                return parent::setBody(['query' => "EXPLAIN QUERY " . $this->index . '\'' . $params['query'] . '\'']);
22 22
             }
23 23
             throw new RuntimeException('Query param is missing.');
24 24
         }
Please login to merge, or discard this patch.
src/Manticoresearch/Endpoints/Cluster/Alter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
                         throw new RuntimeException('Index name is missing.');
36 36
                         break;
37 37
                     case 'update':
38
-                        return parent::setBody(['query' => "ALTER CLUSTER " .$this->cluster . " UPDATE nodes"]);
38
+                        return parent::setBody(['query' => "ALTER CLUSTER " . $this->cluster . " UPDATE nodes"]);
39 39
                         break;
40 40
                 }
41 41
                 throw new RuntimeException('Unknown cluster operation');
Please login to merge, or discard this patch.
src/Manticoresearch/Endpoints/Cluster/Delete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public function setBody($params = null)
24 24
     {
25 25
         if (isset($this->cluster)) {
26
-            return parent::setBody(['query' => "DELETE CLUSTER ".$this->cluster]);
26
+            return parent::setBody(['query' => "DELETE CLUSTER " . $this->cluster]);
27 27
         }
28 28
         throw new RuntimeException('Cluster name is missing.');
29 29
     }
Please login to merge, or discard this patch.
src/Manticoresearch/Endpoints/Nodes/Threads.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
         }
23 23
 
24 24
         return parent::setBody(['query' => "SHOW THREADS " .
25
-            ((count($options)>0)?' OPTION '.implode(",", $options):'')]);
25
+            ((count($options) > 0) ? ' OPTION ' . implode(",", $options) : '')]);
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Manticoresearch/Endpoints/Nodes/ReloadPlugins.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         $this->body = $params;
21 21
         if (isset($params['library'])) {
22
-            return parent::setBody(['query' => "RELOAD PLUGINS FROM SONAME ".$params['library']]);
22
+            return parent::setBody(['query' => "RELOAD PLUGINS FROM SONAME " . $params['library']]);
23 23
         }
24 24
         throw new RuntimeException('library name not present in  /nodes/reloadplugins');
25 25
     }
Please login to merge, or discard this patch.
src/Manticoresearch/Endpoints/Nodes/DropPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function setBody($params = null)
17 17
     {
18 18
         if (isset($params['name'])) {
19
-            return parent::setBody(['query' => "DROP PLUGIN " . $params['name']." TYPE".$params['type']]);
19
+            return parent::setBody(['query' => "DROP PLUGIN " . $params['name'] . " TYPE" . $params['type']]);
20 20
         }
21 21
         throw new RuntimeException('Missing plugin name in /nodes/dropplugin');
22 22
     }
Please login to merge, or discard this patch.