Skip to content

Commit 282388e

Browse files
authored
Fix XML writeConcern parsing with numeric support
fixes code style issues to comply with doctrine/coding-standard: - Adds space after `if` keyword - Adds blank line after `if` block
1 parent 11198c2 commit 282388e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ public function loadMetadataForClass($className, \Doctrine\Persistence\Mapping\C
159159

160160
if (isset($xmlRoot['write-concern'])) {
161161
$writeConcern = (string) $xmlRoot['write-concern'];
162-
if(is_numeric($writeConcern)) {
162+
if (is_numeric($writeConcern)) {
163163
$writeConcern = (int) $writeConcern;
164164
}
165+
165166
$metadata->setWriteConcern($writeConcern);
166167
}
167168

0 commit comments

Comments
 (0)