Passed
Push — master ( 7f4ea4...57716b )
by
unknown
02:43
created
src/Manticoresearch/Index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         static::checkDocumentId($id);
78 78
         if (is_object($data)) {
79
-            $data = (array) $data;
79
+            $data = (array)$data;
80 80
         } elseif (is_string($data)) {
81 81
             $data = json_decode($data, true);
82 82
         }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         $toinsert = [];
100 100
         foreach ($documents as $document) {
101 101
             if (is_object($document)) {
102
-                $document = (array) $document;
102
+                $document = (array)$document;
103 103
             } elseif (is_string($document)) {
104 104
                 $document = json_decode($document, true);
105 105
             }
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     {
213 213
         static::checkDocumentId($id);
214 214
         if (is_object($data)) {
215
-            $data = (array) $data;
215
+            $data = (array)$data;
216 216
         } elseif (is_string($data)) {
217 217
             $data = json_decode($data, true);
218 218
         }
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         $toreplace = [];
235 235
         foreach ($documents as $document) {
236 236
             if (is_object($document)) {
237
-                $document = (array) $document;
237
+                $document = (array)$document;
238 238
             } elseif (is_string($document)) {
239 239
                 $document = json_decode($document, true);
240 240
             }
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
     
455 455
     protected static function checkIfList(array &$ids)
456 456
     {
457
-        if ($ids && (array_keys($ids) !== range(0, count($ids) - 1))) {
457
+        if ($ids && (array_keys($ids) !== range(0, count($ids)-1))) {
458 458
             $ids = array_values(array_unique($ids));
459 459
         }
460 460
     }
Please login to merge, or discard this patch.