Completed
Push — 1.x ( 594da6...e75aef )
by Adrian
03:07
created
src/Manticoresearch/Endpoints/Keywords.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public function setBody($params = null)
16 16
     {
17 17
         if (isset($this->_index)) {
18
-            $binds =[];
18
+            $binds = [];
19 19
             $binds[] = "'" . Utils::escape($params['query']) . "'";
20 20
             $binds[] = "'" . $this->_index . "'";
21 21
             if (count($params['options']) > 0) {
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
                     $binds[] = "$value AS $name";
24 24
                 }
25 25
             }
26
-            return parent::setBody( ['query' => "CALL KEYWORDS(" . implode(",", $binds) . ")"]);
26
+            return parent::setBody(['query' => "CALL KEYWORDS(" . implode(",", $binds) . ")"]);
27 27
         }
28 28
         throw new RuntimeException('Index name is missing.');
29 29
 
Please login to merge, or discard this patch.
src/Manticoresearch/Endpoints/Suggest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     public function setBody($params = null)
15 15
     {
16 16
         if (isset($this->_index)) {
17
-            $binds =[];
17
+            $binds = [];
18 18
             $binds[] = "'" . Utils::escape($params['query']) . "'";
19 19
             $binds[] = "'" . $this->_index . "'";
20 20
             if (count($params['options']) > 0) {
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
                     $binds[] = "$value AS $name";
23 23
                 }
24 24
             }
25
-            return parent::setBody( ['query' => "CALL SUGGEST(" . implode(",", $binds) . ")"]);
25
+            return parent::setBody(['query' => "CALL SUGGEST(" . implode(",", $binds) . ")"]);
26 26
         }
27 27
         throw new RuntimeException('Index name is missing.');
28 28
     }
Please login to merge, or discard this patch.