@@ -117,8 +117,8 @@ discard block |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | $index = $this->type->findIndex(array_keys($query)); |
120 | - if(!is_numeric($index)) { |
|
121 | - throw new \Exception("No index found for " . json_encode(array_keys($query))); |
|
120 | + if (!is_numeric($index)) { |
|
121 | + throw new \Exception("No index found for ".json_encode(array_keys($query))); |
|
122 | 122 | } |
123 | 123 | $values = count($query) ? $this->type->getIndexTuple($index, $query) : []; |
124 | 124 | |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | } |
182 | 182 | try { |
183 | 183 | $this->type->getSpace()->update($entity->getId(), $operations); |
184 | - } catch(\Exception $e) { |
|
184 | + } catch (\Exception $e) { |
|
185 | 185 | $this->type->getSpace()->delete([$entity->getId()]); |
186 | 186 | $tuple = $this->type->getCompleteTuple($entity->toArray()); |
187 | 187 | $this->type->getSpace()->insert($tuple); |