Skip to content

Commit aa1253d

Browse files
committed
Update comment
1 parent 6cbada9 commit aa1253d

1 file changed

Lines changed: 22 additions & 22 deletions

File tree

src/Database/Database.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ public function create(?string $database = null): bool
13781378
try {
13791379
$this->trigger(self::EVENT_DATABASE_CREATE, $database);
13801380
} catch (\Throwable $e) {
1381-
// Log but don't throw - event failures shouldn't fail the operation
1381+
// Ignore
13821382
}
13831383

13841384
return true;
@@ -1412,7 +1412,7 @@ public function list(): array
14121412
try {
14131413
$this->trigger(self::EVENT_DATABASE_LIST, $databases);
14141414
} catch (\Throwable $e) {
1415-
// Log but don't throw - event failures shouldn't fail the operation
1415+
// Ignore
14161416
}
14171417

14181418
return $databases;
@@ -1437,7 +1437,7 @@ public function delete(?string $database = null): bool
14371437
'deleted' => $deleted
14381438
]);
14391439
} catch (\Throwable $e) {
1440-
// Log but don't throw - event failures shouldn't fail the operation
1440+
// Ignore
14411441
}
14421442

14431443
$this->cache->flush();
@@ -1610,7 +1610,7 @@ public function createCollection(string $id, array $attributes = [], array $inde
16101610
try {
16111611
$this->trigger(self::EVENT_COLLECTION_CREATE, $createdCollection);
16121612
} catch (\Throwable $e) {
1613-
// Log but don't throw - event failures shouldn't fail the operation
1613+
// Ignore
16141614
}
16151615

16161616
return $createdCollection;
@@ -1658,7 +1658,7 @@ public function updateCollection(string $id, array $permissions, bool $documentS
16581658
try {
16591659
$this->trigger(self::EVENT_COLLECTION_UPDATE, $collection);
16601660
} catch (\Throwable $e) {
1661-
// Log but don't throw - event failures shouldn't fail the operation
1661+
// Ignore
16621662
}
16631663

16641664
return $collection;
@@ -1688,7 +1688,7 @@ public function getCollection(string $id): Document
16881688
try {
16891689
$this->trigger(self::EVENT_COLLECTION_READ, $collection);
16901690
} catch (\Throwable $e) {
1691-
// Log but don't throw - event failures shouldn't fail the operation
1691+
// Ignore
16921692
}
16931693

16941694
return $collection;
@@ -1713,7 +1713,7 @@ public function listCollections(int $limit = 25, int $offset = 0): array
17131713
try {
17141714
$this->trigger(self::EVENT_COLLECTION_LIST, $result);
17151715
} catch (\Throwable $e) {
1716-
// Log but don't throw - event failures shouldn't fail the operation
1716+
// Ignore
17171717
}
17181718

17191719
return $result;
@@ -1827,7 +1827,7 @@ public function deleteCollection(string $id): bool
18271827
try {
18281828
$this->trigger(self::EVENT_COLLECTION_DELETE, $collection);
18291829
} catch (\Throwable $e) {
1830-
// Log but don't throw - event failures shouldn't fail the operation
1830+
// Ignore
18311831
}
18321832
}
18331833

@@ -1923,13 +1923,13 @@ public function createAttribute(string $collection, string $id, string $type, in
19231923
'$collection' => self::METADATA
19241924
]));
19251925
} catch (\Throwable $e) {
1926-
// Log but don't throw - event failures shouldn't fail the operation
1926+
// Ignore
19271927
}
19281928

19291929
try {
19301930
$this->trigger(self::EVENT_ATTRIBUTE_CREATE, $attribute);
19311931
} catch (\Throwable $e) {
1932-
// Log but don't throw - event failures shouldn't fail the operation
1932+
// Ignore
19331933
}
19341934

19351935
return true;
@@ -2048,13 +2048,13 @@ public function createAttributes(string $collection, array $attributes): bool
20482048
'$collection' => self::METADATA
20492049
]));
20502050
} catch (\Throwable $e) {
2051-
// Log but don't throw - event failures shouldn't fail the operation
2051+
// Ignore
20522052
}
20532053

20542054
try {
20552055
$this->trigger(self::EVENT_ATTRIBUTE_CREATE, $attributeDocuments);
20562056
} catch (\Throwable $e) {
2057-
// Log but don't throw - event failures shouldn't fail the operation
2057+
// Ignore
20582058
}
20592059

20602060
return true;
@@ -2393,7 +2393,7 @@ protected function updateAttributeMeta(string $collection, string $id, callable
23932393
try {
23942394
$this->trigger(self::EVENT_ATTRIBUTE_UPDATE, $attributes[$index]);
23952395
} catch (\Throwable $e) {
2396-
// Log but don't throw - event failures shouldn't fail the operation
2396+
// Ignore
23972397
}
23982398

23992399
return $attributes[$index];
@@ -2810,13 +2810,13 @@ public function updateAttribute(string $collection, string $id, ?string $type =
28102810
'$collection' => self::METADATA
28112811
]));
28122812
} catch (\Throwable $e) {
2813-
// Log but don't throw - event failures shouldn't fail the operation
2813+
// Ignore
28142814
}
28152815

28162816
try {
28172817
$this->trigger(self::EVENT_ATTRIBUTE_UPDATE, $attribute);
28182818
} catch (\Throwable $e) {
2819-
// Log but don't throw - event failures shouldn't fail the operation
2819+
// Ignore
28202820
}
28212821

28222822
return $attribute;
@@ -2951,13 +2951,13 @@ public function deleteAttribute(string $collection, string $id): bool
29512951
'$collection' => self::METADATA
29522952
]));
29532953
} catch (\Throwable $e) {
2954-
// Log but don't throw - event failures shouldn't fail the operation
2954+
// Ignore
29552955
}
29562956

29572957
try {
29582958
$this->trigger(self::EVENT_ATTRIBUTE_DELETE, $attribute);
29592959
} catch (\Throwable $e) {
2960-
// Log but don't throw - event failures shouldn't fail the operation
2960+
// Ignore
29612961
}
29622962

29632963
return true;
@@ -3051,7 +3051,7 @@ public function renameAttribute(string $collection, string $old, string $new): b
30513051
try {
30523052
$this->trigger(self::EVENT_ATTRIBUTE_UPDATE, $attribute);
30533053
} catch (\Throwable $e) {
3054-
// Log but don't throw - event failures shouldn't fail the operation
3054+
// Ignore
30553055
}
30563056

30573057
return $renamed;
@@ -3383,7 +3383,7 @@ public function createRelationship(
33833383
try {
33843384
$this->trigger(self::EVENT_ATTRIBUTE_CREATE, $relationship);
33853385
} catch (\Throwable $e) {
3386-
// Log but don't throw - event failures shouldn't fail the operation
3386+
// Ignore
33873387
}
33883388

33893389
return true;
@@ -3760,7 +3760,7 @@ public function deleteRelationship(string $collection, string $id): bool
37603760
try {
37613761
$this->trigger(self::EVENT_ATTRIBUTE_DELETE, $relationship);
37623762
} catch (\Throwable $e) {
3763-
// Log but don't throw - event failures shouldn't fail the operation
3763+
// Ignore
37643764
}
37653765

37663766
return true;
@@ -3829,7 +3829,7 @@ public function renameIndex(string $collection, string $old, string $new): bool
38293829
try {
38303830
$this->trigger(self::EVENT_INDEX_RENAME, $indexNew);
38313831
} catch (\Throwable $e) {
3832-
// Log but don't throw - event failures shouldn't fail the operation
3832+
// Ignore
38333833
}
38343834

38353835
return true;
@@ -4060,7 +4060,7 @@ public function deleteIndex(string $collection, string $id): bool
40604060
try {
40614061
$this->trigger(self::EVENT_INDEX_DELETE, $indexDeleted);
40624062
} catch (\Throwable $e) {
4063-
// Log but don't throw - event failures shouldn't fail the operation
4063+
// Ignore
40644064
}
40654065

40664066
return $deleted;

0 commit comments

Comments
 (0)