Skip to content

Commit c183333

Browse files
committed
Rename loop variables
1 parent 44fb5e0 commit c183333

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -938,11 +938,11 @@ private function addGridFSMappings(ClassMetadata $class, SimpleXMLElement $xmlRo
938938
private function addEncryptionMapping(SimpleXMLElement $encrypt, string $type): array
939939
{
940940
$encryptMapping = [];
941-
foreach ($encrypt->attributes() as $encryptKey => $encryptValue) {
942-
$encryptMapping[$encryptKey] = match ($encryptKey) {
943-
'queryType' => EncryptQuery::from((string) $encryptValue),
944-
'min', 'max' => Type::getType($type)->convertToDatabaseValue((string) $encryptValue),
945-
'sparsity', 'precision', 'trimFactor', 'contention' => (int) $encryptValue,
941+
foreach ($encrypt->attributes() as $key => $value) {
942+
$encryptMapping[$key] = match ($key) {
943+
'queryType' => EncryptQuery::from((string) $value),
944+
'min', 'max' => Type::getType($type)->convertToDatabaseValue((string) $value),
945+
'sparsity', 'precision', 'trimFactor', 'contention' => (int) $value,
946946
};
947947
}
948948

0 commit comments

Comments
 (0)