@@ -17,7 +17,7 @@ |
||
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 |
@@ -26,7 +26,7 @@ |
||
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); |
@@ -151,7 +151,7 @@ |
||
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 |
@@ -39,7 +39,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -39,7 +39,7 @@ |
||
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 |
@@ -24,7 +24,7 @@ |
||
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 | } |
@@ -58,7 +58,7 @@ |
||
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 { |
@@ -35,7 +35,7 @@ |
||
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 |
@@ -57,14 +57,14 @@ |
||
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 | } |