Passed
Branch query-builder (d1edb7)
by Csaba
02:43
created
src/Database/Clusterpoint/Finder.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@  discard block
 block discarded – undo
42 42
         }
43 43
     }
44 44
 
45
+    /**
46
+     * @param \Clusterpoint\Instance\Service $collection
47
+     */
45 48
     protected function configQuery($collection)
46 49
     {
47 50
         $this->setLimit($collection);
@@ -90,6 +93,9 @@  discard block
 block discarded – undo
90 93
         };
91 94
     }
92 95
 
96
+    /**
97
+     * @param string $nextLogical
98
+     */
93 99
     protected function parseWhereGroup($logical, $collection, $condition, $nextLogical)
94 100
     {
95 101
         if ($logical === '||') {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,14 +60,14 @@  discard block
 block discarded – undo
60 60
             );
61 61
         }
62 62
         $collection = $this->client->database(
63
-            $this->queryConfiguration->databaseName.
64
-            '.'.
63
+            $this->queryConfiguration->databaseName .
64
+            '.' .
65 65
             $this->queryConfiguration->from
66 66
         );
67 67
         $this->configQuery($collection);
68 68
         $items = json_decode(json_encode($collection->get()->toArray()));
69 69
         $count = count($items);
70
-        for ($idx=0; $idx<$count; $idx++) {
70
+        for ($idx = 0; $idx < $count; $idx++) {
71 71
             $this->resultSet[] = $items[$idx];
72 72
         }
73 73
         return $this;
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
       * @codeCoverageIgnore
86 86
       * Passing anonymous function to Clusterpoint API
87 87
       */
88
-        return function ($collection) use ($conditions, $logical) {
88
+        return function($collection) use ($conditions, $logical) {
89 89
             $this->parseWhere($collection, $conditions, $logical);
90 90
         };
91 91
     }
Please login to merge, or discard this patch.