Passed
Push — master ( f1e39a...75b946 )
by Adrian
04:36
created
src/Manticoresearch/Results/PercolateResultHit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@
 block discarded – undo
14 14
 
15 15
     public function getDocsMatched($docs)
16 16
     {
17
-        return array_map(function ($v) use ($docs) {
18
-            return $docs[$v - 1];
17
+        return array_map(function($v) use ($docs) {
18
+            return $docs[$v-1];
19 19
         }, $this->data['fields']['_percolator_document_slot']);
20 20
     }
21 21
 }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
src/Manticoresearch/Results/PercolateResultDoc.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
     {
16 16
         $this->doc = ['doc'=>$doc['doc']];
17 17
         $this->doc['queries'] = [];
18
-        foreach($doc['queries'] as $query)
18
+        foreach ($doc['queries'] as $query)
19 19
         {
20 20
             $this->doc['queries'][] = new PercolateResultHit($query);
21 21
         }
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function hasQueries()
35 35
     {
36
-        return count($this->doc['queries'])>0;
36
+        return count($this->doc['queries']) > 0;
37 37
     }
38 38
 
39 39
 }
40 40
\ No newline at end of file
Please login to merge, or discard this patch.
src/Manticoresearch/Results/PercolateDocsResultSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
                 if (isset($query['fields'], $query['fields']['_percolator_document_slot'])) {
39 39
                     foreach ($query['fields']['_percolator_document_slot'] as $d) {
40 40
                         if (isset($this->array[$d-1])) {
41
-                            $this->array[$d-1]['queries'][] =$query;
41
+                            $this->array[$d-1]['queries'][] = $query;
42 42
                         }
43 43
 
44 44
                     }
Please login to merge, or discard this patch.