@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | // Evaluate named native queries |
109 | 109 | if (isset($element['namedNativeQueries'])) { |
110 | 110 | foreach ($element['namedNativeQueries'] as $name => $mappingElement) { |
111 | - if (!isset($mappingElement['name'])) { |
|
111 | + if ( ! isset($mappingElement['name'])) { |
|
112 | 112 | $mappingElement['name'] = $name; |
113 | 113 | } |
114 | 114 | $metadata->addNamedNativeQuery( |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | // Evaluate sql result set mappings |
126 | 126 | if (isset($element['sqlResultSetMappings'])) { |
127 | 127 | foreach ($element['sqlResultSetMappings'] as $name => $resultSetMapping) { |
128 | - if (!isset($resultSetMapping['name'])) { |
|
128 | + if ( ! isset($resultSetMapping['name'])) { |
|
129 | 129 | $resultSetMapping['name'] = $name; |
130 | 130 | } |
131 | 131 | |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | } |
173 | 173 | |
174 | 174 | if (isset($element['inheritanceType'])) { |
175 | - $metadata->setInheritanceType(constant('Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_' . strtoupper($element['inheritanceType']))); |
|
175 | + $metadata->setInheritanceType(constant('Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_'.strtoupper($element['inheritanceType']))); |
|
176 | 176 | |
177 | 177 | if ($metadata->inheritanceType != \Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_NONE) { |
178 | 178 | // Evaluate discriminatorColumn |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | } |
362 | 362 | |
363 | 363 | if (isset($oneToOneElement['fetch'])) { |
364 | - $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $oneToOneElement['fetch']); |
|
364 | + $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$oneToOneElement['fetch']); |
|
365 | 365 | } |
366 | 366 | |
367 | 367 | if (isset($oneToOneElement['mappedBy'])) { |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | ]; |
416 | 416 | |
417 | 417 | if (isset($oneToManyElement['fetch'])) { |
418 | - $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $oneToManyElement['fetch']); |
|
418 | + $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$oneToManyElement['fetch']); |
|
419 | 419 | } |
420 | 420 | |
421 | 421 | if (isset($oneToManyElement['cascade'])) { |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | } |
458 | 458 | |
459 | 459 | if (isset($manyToOneElement['fetch'])) { |
460 | - $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $manyToOneElement['fetch']); |
|
460 | + $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$manyToOneElement['fetch']); |
|
461 | 461 | } |
462 | 462 | |
463 | 463 | if (isset($manyToOneElement['inversedBy'])) { |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | ]; |
503 | 503 | |
504 | 504 | if (isset($manyToManyElement['fetch'])) { |
505 | - $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $manyToManyElement['fetch']); |
|
505 | + $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$manyToManyElement['fetch']); |
|
506 | 506 | } |
507 | 507 | |
508 | 508 | if (isset($manyToManyElement['mappedBy'])) { |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | if (isset($element['associationOverride']) && is_array($element['associationOverride'])) { |
573 | 573 | |
574 | 574 | foreach ($element['associationOverride'] as $fieldName => $associationOverrideElement) { |
575 | - $override = []; |
|
575 | + $override = []; |
|
576 | 576 | |
577 | 577 | // Check for joinColumn |
578 | 578 | if (isset($associationOverrideElement['joinColumn'])) { |
@@ -590,7 +590,7 @@ discard block |
||
590 | 590 | if (isset($associationOverrideElement['joinTable'])) { |
591 | 591 | |
592 | 592 | $joinTableElement = $associationOverrideElement['joinTable']; |
593 | - $joinTable = [ |
|
593 | + $joinTable = [ |
|
594 | 594 | 'name' => $joinTableElement['name'] |
595 | 595 | ]; |
596 | 596 | |
@@ -639,7 +639,7 @@ discard block |
||
639 | 639 | if (isset($element['lifecycleCallbacks'])) { |
640 | 640 | foreach ($element['lifecycleCallbacks'] as $type => $methods) { |
641 | 641 | foreach ($methods as $method) { |
642 | - $metadata->addLifecycleCallback($method, constant('Doctrine\ORM\Events::' . $type)); |
|
642 | + $metadata->addLifecycleCallback($method, constant('Doctrine\ORM\Events::'.$type)); |
|
643 | 643 | } |
644 | 644 | } |
645 | 645 | } |
@@ -781,12 +781,12 @@ discard block |
||
781 | 781 | $region = isset($cacheMapping['region']) ? (string) $cacheMapping['region'] : null; |
782 | 782 | $usage = isset($cacheMapping['usage']) ? strtoupper($cacheMapping['usage']) : null; |
783 | 783 | |
784 | - if ($usage && ! defined('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_' . $usage)) { |
|
784 | + if ($usage && ! defined('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_'.$usage)) { |
|
785 | 785 | throw new \InvalidArgumentException(sprintf('Invalid cache usage "%s"', $usage)); |
786 | 786 | } |
787 | 787 | |
788 | 788 | if ($usage) { |
789 | - $usage = constant('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_' . $usage); |
|
789 | + $usage = constant('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_'.$usage); |
|
790 | 790 | } |
791 | 791 | |
792 | 792 | return [ |
@@ -800,7 +800,7 @@ discard block |
||
800 | 800 | */ |
801 | 801 | protected function loadMappingFile($file) |
802 | 802 | { |
803 | - if (defined(Yaml::class . '::PARSE_KEYS_AS_STRINGS')) { |
|
803 | + if (defined(Yaml::class.'::PARSE_KEYS_AS_STRINGS')) { |
|
804 | 804 | return Yaml::parse(file_get_contents($file), Yaml::PARSE_KEYS_AS_STRINGS); |
805 | 805 | } |
806 | 806 |