Skip to content

Commit 72c903e

Browse files
committed
clenup
1 parent fb832fa commit 72c903e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Database/Adapter/Mongo.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ public function createCollection(string $name, array $attributes = [], array $in
341341
// Returns an array/object with the result document
342342
try {
343343
$this->getClient()->createCollection($id);
344-
345344
} catch (MongoException $e) {
346345
throw new Duplicate($e->getMessage(), $e->getCode(), $e);
347346
}
@@ -536,7 +535,6 @@ public function createAttributes(string $collection, array $attributes): bool
536535
public function deleteAttribute(string $collection, string $id): bool
537536
{
538537
$collection = $this->getNamespace() . '_' . $this->filter($collection);
539-
540538
$this->getClient()->update(
541539
$collection,
542540
[],
@@ -869,6 +867,7 @@ public function getDocument(string $collection, string $id, array $queries = [],
869867
}
870868

871869
$result = $this->client->find($name, $filters, $options)->cursor->firstBatch;
870+
872871
if (empty($result)) {
873872
return new Document([]);
874873
}

0 commit comments

Comments
 (0)