Passed
Branch feature/fixing-bugs (3aa9a3)
by Csaba
05:08
created
src/Database/DynamoDb/RestObject.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -139,10 +139,10 @@
 block discarded – undo
139 139
         $marshaler = new Marshaler;
140 140
         $query = [
141 141
             'TableName' => $this->database->getDatabaseName() . '-' . $this->resourceName,
142
-            'KeyConditionExpression' => '#'.$field.'=:'.$field,
142
+            'KeyConditionExpression' => '#' . $field . '=:' . $field,
143 143
             'IndexName' => $this->indexNames[$field],
144
-            'ExpressionAttributeNames' => ['#'.$field => $field],
145
-            'ExpressionAttributeValues' => [':'.$field =>  $marshaler->marshalValue(
144
+            'ExpressionAttributeNames' => ['#' . $field => $field],
145
+            'ExpressionAttributeValues' => [':' . $field =>  $marshaler->marshalValue(
146 146
                 $this->resource->{$field}
147 147
             )],
148 148
         ];
Please login to merge, or discard this patch.
src/Database/Clusterpoint/Finder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             );
64 64
         }
65 65
         $collection = $this->client->database(
66
-            $this->queryConfiguration->databaseName.
66
+            $this->queryConfiguration->databaseName .
67 67
             '.' .
68 68
             $this->queryConfiguration->from
69 69
         );
Please login to merge, or discard this patch.
src/Database/Clusterpoint/RestObject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             $query->where($this->primaryKey, '!=', $this->getPrimaryKeyValue());
45 45
         }
46 46
         // @codeCoverageIgnoreStart
47
-        $query->where(function ($query) use ($uniqueFields) {
47
+        $query->where(function($query) use ($uniqueFields) {
48 48
             foreach ($uniqueFields as $fieldName) {
49 49
                 if (property_exists($this->resource, $fieldName)) {
50 50
                     $query->orWhere($fieldName, '==', $this->resource->{$fieldName});
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function query()
67 67
     {
68
-        $query = $this->getClient()->database($this->getDatabaseName().'.'.$this->resourceName);
68
+        $query = $this->getClient()->database($this->getDatabaseName() . '.' . $this->resourceName);
69 69
         return $query;
70 70
     }
71 71
 }
Please login to merge, or discard this patch.
src/Database/Clusterpoint/Resource.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,8 +100,7 @@
 block discarded – undo
100 100
             return;
101 101
         }
102 102
         $message = $res->error()[0]->message === 'Requested document does not exist' ?
103
-            'Resource does not exist' :
104
-            'Database operation failed';
103
+            'Resource does not exist' : 'Database operation failed';
105 104
         throw new RestException(
106 105
             $message,
107 106
             [
Please login to merge, or discard this patch.