Completed
Pull Request — develop (#6743)
by Grégoire
65:46
created
lib/Doctrine/ORM/Mapping/Driver/SimplifiedXmlDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/EntityManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Proxy/Factory/ProxyFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/NonUniqueResultException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/HydrationCompleteHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/ScalarHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/IterableResult.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
90 90
      */
91 91
     public function valid()
92 92
     {
93
-        return ($this->current!=false);
93
+        return ($this->current != false);
94 94
     }
95 95
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/HydrationException.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.