Passed
Pull Request — master (#7448)
by Ilya
14:31
created
lib/Doctrine/ORM/Mapping/Factory/StaticClassMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     protected function getReflectionService() : StaticReflectionService
19 19
     {
20
-        if (! $this->reflectionService) {
20
+        if ( ! $this->reflectionService) {
21 21
             $this->reflectionService = new StaticReflectionService();
22 22
         }
23 23
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/ClassMetadataDefinitionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $definition = $this->createDefinition($className, $parentMetadata);
28 28
 
29
-        if (! class_exists($definition->metadataClassName, false)) {
29
+        if ( ! class_exists($definition->metadataClassName, false)) {
30 30
             $metadataClassPath = $this->resolver->resolveMetadataClassPath($className);
31 31
 
32 32
             $this->generatorStrategy->generate($metadataClassPath, $definition);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/AbstractClassMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
      */
152 152
     private function getOrCreateClassMetadataDefinition(string $className, ?ClassMetadata $parent) : ClassMetadataDefinition
153 153
     {
154
-        if (! isset($this->definitions[$className])) {
154
+        if ( ! isset($this->definitions[$className])) {
155 155
             $this->definitions[$className] = $this->definitionFactory->build($className, $parent);
156 156
         }
157 157
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/DefaultNamingStrategy.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function embeddedFieldToColumnName($propertyName, $embeddedColumnName, $className = null, $embeddedClassName = null)
41 41
     {
42
-        return $propertyName . '_' . $embeddedColumnName;
42
+        return $propertyName.'_'.$embeddedColumnName;
43 43
     }
44 44
 
45 45
     /**
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function joinColumnName($propertyName, $className = null)
57 57
     {
58
-        return $propertyName . '_' . $this->referenceColumnName();
58
+        return $propertyName.'_'.$this->referenceColumnName();
59 59
     }
60 60
 
61 61
     /**
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function joinTableName($sourceEntity, $targetEntity, $propertyName = null)
65 65
     {
66
-        return strtolower($this->classToTableName($sourceEntity) . '_' .
66
+        return strtolower($this->classToTableName($sourceEntity).'_'.
67 67
             $this->classToTableName($targetEntity));
68 68
     }
69 69
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function joinKeyColumnName($entityName, $referencedColumnName = null)
74 74
     {
75
-        return strtolower($this->classToTableName($entityName) . '_' .
75
+        return strtolower($this->classToTableName($entityName).'_'.
76 76
             ($referencedColumnName ?: $this->referenceColumnName()));
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/Planning/CompositeValueGenerationPlan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function executeDeferred(EntityManagerInterface $entityManager, object $entity) : void
40 40
     {
41 41
         foreach ($this->executors as $executor) {
42
-            if (! $executor->isDeferred()) {
42
+            if ( ! $executor->isDeferred()) {
43 43
                 continue;
44 44
             }
45 45
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/Planning/SingleValueGenerationPlan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     public function executeImmediate(EntityManagerInterface $entityManager, object $entity) : void
26 26
     {
27
-        if (! $this->executor->isDeferred()) {
27
+        if ( ! $this->executor->isDeferred()) {
28 28
             $this->dispatchExecutor($entity, $entityManager);
29 29
         }
30 30
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/TableGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
                         $this->allocationSize
59 59
                     );
60 60
 
61
-                    if ($conn->executeUpdate($updateSql, [1 => $currentLevel, 2 => $currentLevel+1]) !== 1) {
61
+                    if ($conn->executeUpdate($updateSql, [1 => $currentLevel, 2 => $currentLevel + 1]) !== 1) {
62 62
                         // no affected rows, concurrency issue, throw exception
63 63
                     }
64 64
                 } else {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Utility/NormalizeIdentifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $normalizedAssociatedId = [];
36 36
 
37 37
         foreach ($targetClass->getDeclaredPropertiesIterator() as $name => $declaredProperty) {
38
-            if (! array_key_exists($name, $flatIdentifier)) {
38
+            if ( ! array_key_exists($name, $flatIdentifier)) {
39 39
                 continue;
40 40
             }
41 41
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Utility/PersisterHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,14 +57,14 @@
 block discarded – undo
57 57
 
58 58
         // iterate over association mappings
59 59
         foreach ($class->getDeclaredPropertiesIterator() as $association) {
60
-            if (! ($association instanceof AssociationMetadata)) {
60
+            if ( ! ($association instanceof AssociationMetadata)) {
61 61
                 continue;
62 62
             }
63 63
 
64 64
             // resolve join columns over to-one or to-many
65 65
             $targetClass = $em->getClassMetadata($association->getTargetEntity());
66 66
 
67
-            if (! $association->isOwningSide()) {
67
+            if ( ! $association->isOwningSide()) {
68 68
                 $association = $targetClass->getProperty($association->getMappedBy());
69 69
                 $targetClass = $em->getClassMetadata($association->getTargetEntity());
70 70
             }
Please login to merge, or discard this patch.