Skip to content

Commit 6d1a621

Browse files
committed
lint fix
1 parent 947f43b commit 6d1a621

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/Database/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2923,7 +2923,7 @@ public function updateDocument(string $collection, string $id, Document $documen
29232923
$document = \array_merge($old->getArrayCopy(), $document->getArrayCopy());
29242924
$document['$collection'] = $old->getAttribute('$collection'); // Make sure user doesn't switch collectionID
29252925
$document['$createdAt'] = $old->getCreatedAt(); // Make sure user doesn't switch createdAt
2926-
$document['$id'] = $old->getId();
2926+
$document['$id'] = $old->getId();
29272927
$document = new Document($document);
29282928

29292929
$collection = $this->silent(fn () => $this->getCollection($collection));

tests/Database/Base.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4481,7 +4481,7 @@ public function testNoInvalidKeysWithRelationships(): void
44814481
]
44824482
]));
44834483
$updatedSpecies = static::getDatabase()->getDocument('species', $species->getId());
4484-
$this->assertEquals($species, $updatedSpecies);
4484+
$this->assertEquals($species, $updatedSpecies);
44854485
}
44864486

44874487
// Relationships
@@ -4986,7 +4986,8 @@ public function testOneToOneTwoWayRelationship(): void
49864986
$country1Document = static::getDatabase()->getDocument('country', 'country1');
49874987
// Assert document does not contain non existing relation document.
49884988
$this->assertEquals(null, $country1Document->getAttribute('city'));
4989-
static::getDatabase()->updateDocument('country', 'country1', (new Document($doc->getArrayCopy()))->setAttribute('city','city1')); try {
4989+
static::getDatabase()->updateDocument('country', 'country1', (new Document($doc->getArrayCopy()))->setAttribute('city', 'city1'));
4990+
try {
49904991
static::getDatabase()->deleteDocument('country', 'country1');
49914992
$this->fail('Failed to throw exception');
49924993
} catch (Exception $e) {

0 commit comments

Comments
 (0)