Test Failed
Branch feature/upgrade-code-quality (805160)
by Csaba
01:56
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   +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.
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.