|
11 | 11 | use DOMDocument; |
12 | 12 | use InvalidArgumentException; |
13 | 13 | use LibXMLError; |
14 | | -use SimpleXmlElement; |
| 14 | +use SimpleXMLElement; |
15 | 15 | use function array_keys; |
16 | 16 | use function array_map; |
17 | 17 | use function constant; |
@@ -76,7 +76,7 @@ public function __construct($locator, $fileExtension = self::DEFAULT_FILE_EXTENS |
76 | 76 | public function loadMetadataForClass($className, \Doctrine\Common\Persistence\Mapping\ClassMetadata $class) |
77 | 77 | { |
78 | 78 | /** @var ClassMetadata $class */ |
79 | | - /** @var \SimpleXMLElement $xmlRoot */ |
| 79 | + /** @var SimpleXMLElement $xmlRoot */ |
80 | 80 | $xmlRoot = $this->getElement($className); |
81 | 81 | if (! $xmlRoot) { |
82 | 82 | return; |
@@ -302,7 +302,7 @@ private function addFieldMapping(ClassMetadata $class, array $mapping) : void |
302 | 302 | $class->addIndex($keys, $options); |
303 | 303 | } |
304 | 304 |
|
305 | | - private function addEmbedMapping(ClassMetadata $class, SimpleXmlElement $embed, string $type) : void |
| 305 | + private function addEmbedMapping(ClassMetadata $class, SimpleXMLElement $embed, string $type) : void |
306 | 306 | { |
307 | 307 | $attributes = $embed->attributes(); |
308 | 308 | $defaultStrategy = $type === 'one' ? ClassMetadata::STORAGE_STRATEGY_SET : CollectionHelper::DEFAULT_STRATEGY; |
@@ -409,7 +409,7 @@ private function addReferenceMapping(ClassMetadata $class, $reference, string $t |
409 | 409 | $this->addFieldMapping($class, $mapping); |
410 | 410 | } |
411 | 411 |
|
412 | | - private function addIndex(ClassMetadata $class, SimpleXmlElement $xmlIndex) : void |
| 412 | + private function addIndex(ClassMetadata $class, SimpleXMLElement $xmlIndex) : void |
413 | 413 | { |
414 | 414 | $attributes = $xmlIndex->attributes(); |
415 | 415 |
|
@@ -479,7 +479,7 @@ private function addIndex(ClassMetadata $class, SimpleXmlElement $xmlIndex) : vo |
479 | 479 | $class->addIndex($keys, $options); |
480 | 480 | } |
481 | 481 |
|
482 | | - private function getPartialFilterExpression(\SimpleXMLElement $fields) : array |
| 482 | + private function getPartialFilterExpression(SimpleXMLElement $fields) : array |
483 | 483 | { |
484 | 484 | $partialFilterExpression = []; |
485 | 485 | foreach ($fields as $field) { |
@@ -514,7 +514,7 @@ private function getPartialFilterExpression(\SimpleXMLElement $fields) : array |
514 | 514 | return $partialFilterExpression; |
515 | 515 | } |
516 | 516 |
|
517 | | - private function setShardKey(ClassMetadata $class, SimpleXmlElement $xmlShardkey) : void |
| 517 | + private function setShardKey(ClassMetadata $class, SimpleXMLElement $xmlShardkey) : void |
518 | 518 | { |
519 | 519 | $attributes = $xmlShardkey->attributes(); |
520 | 520 |
|
@@ -554,7 +554,7 @@ private function setShardKey(ClassMetadata $class, SimpleXmlElement $xmlShardkey |
554 | 554 | * |
555 | 555 | * list($readPreference, $tags) = $this->transformReadPreference($xml->{read-preference}); |
556 | 556 | */ |
557 | | - private function transformReadPreference(\SimpleXMLElement $xmlReadPreference) : array |
| 557 | + private function transformReadPreference(SimpleXMLElement $xmlReadPreference) : array |
558 | 558 | { |
559 | 559 | $tags = null; |
560 | 560 | if (isset($xmlReadPreference->{'tag-set'})) { |
@@ -623,7 +623,7 @@ private function formatErrors(array $xmlErrors) : string |
623 | 623 | }, $xmlErrors)); |
624 | 624 | } |
625 | 625 |
|
626 | | - private function addGridFSMappings(ClassMetadata $class, \SimpleXMLElement $xmlRoot) : void |
| 626 | + private function addGridFSMappings(ClassMetadata $class, SimpleXMLElement $xmlRoot) : void |
627 | 627 | { |
628 | 628 | if (! $class->isFile) { |
629 | 629 | return; |
|
0 commit comments