Completed
Push — master ( 4d6fed...0fcf63 )
by Adrian
02:39
created
src/Manticoresearch/Endpoints/Suggest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 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) {
Please login to merge, or discard this patch.
src/Manticoresearch/Connection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      */
174 174
     public function getTransportHandler(LoggerInterface $logger)
175 175
     {
176
-        return Transport::create($this->getTransport(), $this,$logger);
176
+        return Transport::create($this->getTransport(), $this, $logger);
177 177
     }
178 178
 
179 179
     /**
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
      * @param string|null
193 193
      * @return mixed|null
194 194
      */
195
-    public function getConfig($key =  null)
195
+    public function getConfig($key = null)
196 196
     {
197
-        if($key === null) {
197
+        if ($key === null) {
198 198
             return $this->config;
199 199
         }
200 200
         return $this->config[$key] ?? null;
Please login to merge, or discard this patch.
src/Manticoresearch/Endpoints/Indices/Create.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         if (isset($this->_index)) {
24 24
             $columns = [];
25
-            if(isset($params['columns'] )) {
25
+            if (isset($params['columns'])) {
26 26
                 foreach ($params['columns'] as $name => $settings) {
27 27
                     $column = $name . ' ' . $settings['type'];
28 28
                     if (isset($settings['options']) && count($settings['options']) > 0) {
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
                 }
33 33
             }
34 34
             $options = "";
35
-            if(isset($params['settings'] )) {
36
-                foreach($params['settings'] as $name=>$value) {
37
-                    $options.=" ".$name." = ".$value;
35
+            if (isset($params['settings'])) {
36
+                foreach ($params['settings'] as $name=>$value) {
37
+                    $options .= " " . $name . " = " . $value;
38 38
                 }
39 39
 
40 40
             }
41
-            return parent::setBody(['query' => "CREATE TABLE ".$this->_index.
42
-                (count($columns)>0?"(".implode(",",$columns).")":" ")
41
+            return parent::setBody(['query' => "CREATE TABLE " . $this->_index .
42
+                (count($columns) > 0 ? "(" . implode(",", $columns) . ")" : " ")
43 43
                 .$options]);
44 44
         }
45 45
         throw new RuntimeException('Index name is missing.');
Please login to merge, or discard this patch.
src/Manticoresearch/Endpoints/Nodes/CreatePlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
 
16 16
     public function setBody($params = null)
17 17
     {
18
-        if(isset($params['name'], $params['type']) && $params['library']) {
19
-            return parent::setBody(['query' => "CREATE PLUGIN " . $params['name']." TYPE ".strtoupper($params['type']). " SONAME ".$params['library']]);
18
+        if (isset($params['name'], $params['type']) && $params['library']) {
19
+            return parent::setBody(['query' => "CREATE PLUGIN " . $params['name'] . " TYPE " . strtoupper($params['type']) . " SONAME " . $params['library']]);
20 20
         }
21 21
 
22 22
         throw new RuntimeException('Incomplete request for /nodes/createplugin');
Please login to merge, or discard this patch.