@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Mapping\Driver; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Mapping\Driver; |
6 | 6 | |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | |
460 | 460 | if (isset($manyToOneElement['fetch'])) { |
461 | 461 | $association->setFetchMode( |
462 | - constant('Doctrine\ORM\Mapping\FetchMode::' . (string) $manyToOneElement['fetch']) |
|
462 | + constant('Doctrine\ORM\Mapping\FetchMode::'.(string) $manyToOneElement['fetch']) |
|
463 | 463 | ); |
464 | 464 | } |
465 | 465 | |
@@ -607,7 +607,7 @@ discard block |
||
607 | 607 | $fieldName = (string) $overrideElement['name']; |
608 | 608 | $property = $metadata->getProperty($fieldName); |
609 | 609 | |
610 | - if (! $property) { |
|
610 | + if ( ! $property) { |
|
611 | 611 | throw Mapping\MappingException::invalidOverrideFieldName($metadata->getClassName(), $fieldName); |
612 | 612 | } |
613 | 613 | |
@@ -665,7 +665,7 @@ discard block |
||
665 | 665 | // Check for fetch |
666 | 666 | if (isset($overrideElement['fetch'])) { |
667 | 667 | $override->setFetchMode( |
668 | - constant('Doctrine\ORM\Mapping\FetchMode::' . (string) $overrideElement['fetch']) |
|
668 | + constant('Doctrine\ORM\Mapping\FetchMode::'.(string) $overrideElement['fetch']) |
|
669 | 669 | ); |
670 | 670 | } |
671 | 671 | |
@@ -676,7 +676,7 @@ discard block |
||
676 | 676 | // Evaluate <lifecycle-callbacks...> |
677 | 677 | if (isset($xmlRoot->{'lifecycle-callbacks'})) { |
678 | 678 | foreach ($xmlRoot->{'lifecycle-callbacks'}->{'lifecycle-callback'} as $lifecycleCallback) { |
679 | - $eventName = constant(Events::class . '::' . (string) $lifecycleCallback['type']); |
|
679 | + $eventName = constant(Events::class.'::'.(string) $lifecycleCallback['type']); |
|
680 | 680 | $methodName = (string) $lifecycleCallback['method']; |
681 | 681 | |
682 | 682 | $metadata->addLifecycleCallback($methodName, $eventName); |
@@ -688,7 +688,7 @@ discard block |
||
688 | 688 | foreach ($xmlRoot->{'entity-listeners'}->{'entity-listener'} as $listenerElement) { |
689 | 689 | $listenerClassName = $metadata->fullyQualifiedClassName((string) $listenerElement['class']); |
690 | 690 | |
691 | - if (! class_exists($listenerClassName)) { |
|
691 | + if ( ! class_exists($listenerClassName)) { |
|
692 | 692 | throw Mapping\MappingException::entityListenerClassNotFound( |
693 | 693 | $listenerClassName, |
694 | 694 | $metadata->getClassName() |
@@ -863,7 +863,7 @@ discard block |
||
863 | 863 | ) |
864 | 864 | { |
865 | 865 | $baseRegion = strtolower(str_replace('\\', '_', $metadata->getRootClassName())); |
866 | - $defaultRegion = $baseRegion . ($fieldName ? '__' . $fieldName : ''); |
|
866 | + $defaultRegion = $baseRegion.($fieldName ? '__'.$fieldName : ''); |
|
867 | 867 | |
868 | 868 | $region = isset($cacheMapping['region']) ? (string) $cacheMapping['region'] : $defaultRegion; |
869 | 869 | $usage = isset($cacheMapping['usage']) |
@@ -894,7 +894,7 @@ discard block |
||
894 | 894 | Events::preFlush, |
895 | 895 | ]; |
896 | 896 | |
897 | - return array_filter($events, function ($eventName) use ($method) { |
|
897 | + return array_filter($events, function($eventName) use ($method) { |
|
898 | 898 | return $eventName === $method->getName(); |
899 | 899 | }); |
900 | 900 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM; |
6 | 6 | |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | $class = $this->metadataFactory->getMetadataFor(ltrim($entityName, '\\')); |
382 | 382 | $className = $class->getClassName(); |
383 | 383 | |
384 | - if (! is_array($id)) { |
|
384 | + if ( ! is_array($id)) { |
|
385 | 385 | if ($class->isIdentifierComposite()) { |
386 | 386 | throw ORMInvalidArgumentException::invalidCompositeIdentifier(); |
387 | 387 | } |
@@ -800,7 +800,7 @@ discard block |
||
800 | 800 | */ |
801 | 801 | public function isOpen() |
802 | 802 | { |
803 | - return (!$this->closed); |
|
803 | + return ( ! $this->closed); |
|
804 | 804 | } |
805 | 805 | |
806 | 806 | /** |
@@ -911,7 +911,7 @@ discard block |
||
911 | 911 | sprintf( |
912 | 912 | 'Invalid $connection argument of type %s given%s.', |
913 | 913 | is_object($connection) ? get_class($connection) : gettype($connection), |
914 | - is_object($connection) ? '' : ': "' . $connection . '"' |
|
914 | + is_object($connection) ? '' : ': "'.$connection.'"' |
|
915 | 915 | ) |
916 | 916 | ); |
917 | 917 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | |
4 | -declare(strict_types=1); |
|
4 | +declare(strict_types = 1); |
|
5 | 5 | |
6 | 6 | namespace Doctrine\ORM\Proxy\Factory; |
7 | 7 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Internal; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Internal\Hydration; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Internal\Hydration; |
6 | 6 | |
@@ -90,6 +90,6 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function valid() |
92 | 92 | { |
93 | - return ($this->current!=false); |
|
93 | + return ($this->current != false); |
|
94 | 94 | } |
95 | 95 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Internal\Hydration; |
6 | 6 | |
@@ -33,9 +33,9 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public static function emptyDiscriminatorValue($dqlAlias) |
35 | 35 | { |
36 | - return new self("The DQL alias '" . $dqlAlias . "' contains an entity ". |
|
37 | - "of an inheritance hierarchy with an empty discriminator value. This means " . |
|
38 | - "that the database contains inconsistent data with an empty " . |
|
36 | + return new self("The DQL alias '".$dqlAlias."' contains an entity ". |
|
37 | + "of an inheritance hierarchy with an empty discriminator value. This means ". |
|
38 | + "that the database contains inconsistent data with an empty ". |
|
39 | 39 | "discriminator value in a table row." |
40 | 40 | ); |
41 | 41 | } |