Passed
Branch query-builder (5554ca)
by Csaba
03:00
created
clusterpoint-example.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
 
21 21
 return [
22 22
     'default' => [
23
-      'host' => getenv('CLUSTERPOINT_HOST'),
24
-      'account_id' => getenv('CLUSTERPOINT_ACCOUNT_ID'),
25
-      'username' => getenv('CLUSTERPOINT_USERNAME'),
26
-      'password' => getenv('CLUSTERPOINT_PASSWORD'),
27
-      'debug' => getenv('CLUSTERPOINT_DEBUG_MODE'),
23
+        'host' => getenv('CLUSTERPOINT_HOST'),
24
+        'account_id' => getenv('CLUSTERPOINT_ACCOUNT_ID'),
25
+        'username' => getenv('CLUSTERPOINT_USERNAME'),
26
+        'password' => getenv('CLUSTERPOINT_PASSWORD'),
27
+        'debug' => getenv('CLUSTERPOINT_DEBUG_MODE'),
28 28
     ],
29 29
     'development' => [
30 30
         'host' => 'https://api-eu.clusterpoint.com/v4/',
Please login to merge, or discard this patch.
src/Database/DynamoDb/RestObject.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
             $client = $this->getClient();
19 19
         }
20 20
         return (new Finder($client))
21
-          ->database($this->getDatabaseName())
22
-          ->from($this->getResourceName());
21
+            ->database($this->getDatabaseName())
22
+            ->from($this->getResourceName());
23 23
     }
24 24
 
25 25
     public function validateUniqueFields()
Please login to merge, or discard this patch.
src/Database/Clusterpoint/Finder.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
40 40
 
41 41
     protected function addWhereGroup($collection, $conditions, $logical)
42 42
     {
43
-      /**
44
-      * @codeCoverageIgnore
45
-      * Passing anonymous function to Clusterpoint API
46
-      */
43
+        /**
44
+         * @codeCoverageIgnore
45
+         * Passing anonymous function to Clusterpoint API
46
+         */
47 47
         return function ($collection) use ($conditions, $logical) {
48 48
             $this->parseWhere($collection, $conditions, $logical);
49 49
         };
Please login to merge, or discard this patch.
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@  discard block
 block discarded – undo
7 7
 
8 8
 class Finder extends BaseFinder
9 9
 {
10
+    /**
11
+     * @param \Clusterpoint\Instance\Service $collection
12
+     */
10 13
     protected function setLimit($collection)
11 14
     {
12 15
         if ($this->limit !== null) {
@@ -14,6 +17,9 @@  discard block
 block discarded – undo
14 17
         }
15 18
     }
16 19
 
20
+    /**
21
+     * @param \Clusterpoint\Instance\Service $collection
22
+     */
17 23
     protected function setOffset($collection)
18 24
     {
19 25
         if ($this->offset !== null) {
@@ -21,6 +27,9 @@  discard block
 block discarded – undo
21 27
         }
22 28
     }
23 29
 
30
+    /**
31
+     * @param \Clusterpoint\Instance\Service $collection
32
+     */
24 33
     protected function setOrderBy($collection)
25 34
     {
26 35
         foreach ($this->orderBy as $orderBy) {
@@ -28,6 +37,9 @@  discard block
 block discarded – undo
28 37
         }
29 38
     }
30 39
 
40
+    /**
41
+     * @param \Clusterpoint\Instance\Service $collection
42
+     */
31 43
     protected function setSelect($collection)
32 44
     {
33 45
         if ($this->select !== '*') {
@@ -35,6 +47,9 @@  discard block
 block discarded – undo
35 47
         }
36 48
     }
37 49
 
50
+    /**
51
+     * @param \Clusterpoint\Instance\Service $collection
52
+     */
38 53
     public function setWhere($collection)
39 54
     {
40 55
         if (!empty($this->where)) {
@@ -81,6 +96,9 @@  discard block
 block discarded – undo
81 96
         };
82 97
     }
83 98
 
99
+    /**
100
+     * @param string $nextLogical
101
+     */
84 102
     protected function parseWhereGroup($logical, $collection, $condition, $nextLogical)
85 103
     {
86 104
         if ($logical === '||') {
Please login to merge, or discard this patch.
src/Database/Clusterpoint/RestObject.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
             $client = $this->getClient();
19 19
         }
20 20
         return (new Finder($client))
21
-          ->database($this->getDatabaseName())
22
-          ->from($this->getResourceName());
21
+            ->database($this->getDatabaseName())
22
+            ->from($this->getResourceName());
23 23
     }
24 24
 
25 25
     public function validateUniqueFields()
Please login to merge, or discard this patch.