@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function embeddedFieldToColumnName($propertyName, $embeddedColumnName, $className = null, $embeddedClassName = null) |
78 | 78 | { |
79 | - return $this->underscore($propertyName) . '_' . $embeddedColumnName; |
|
79 | + return $this->underscore($propertyName).'_'.$embeddedColumnName; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function joinColumnName($propertyName, $className = null) |
94 | 94 | { |
95 | - return $this->underscore($propertyName) . '_' . $this->referenceColumnName(); |
|
95 | + return $this->underscore($propertyName).'_'.$this->referenceColumnName(); |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | public function joinTableName($sourceEntity, $targetEntity, $propertyName = null) |
102 | 102 | { |
103 | - return $this->classToTableName($sourceEntity) . '_' . $this->classToTableName($targetEntity); |
|
103 | + return $this->classToTableName($sourceEntity).'_'.$this->classToTableName($targetEntity); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function joinKeyColumnName($entityName, $referencedColumnName = null) |
110 | 110 | { |
111 | - return $this->classToTableName($entityName) . '_' . |
|
111 | + return $this->classToTableName($entityName).'_'. |
|
112 | 112 | ($referencedColumnName ?: $this->referenceColumnName()); |
113 | 113 | } |
114 | 114 |
@@ -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 |