@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | public function getQuotedQualifiedName(AbstractPlatform $platform) : string |
57 | 57 | { |
58 | - if (! $this->schema) { |
|
58 | + if ( ! $this->schema) { |
|
59 | 59 | return $platform->quoteIdentifier($this->name); |
60 | 60 | } |
61 | 61 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | */ |
128 | 128 | public function addIndex(array $index) : void |
129 | 129 | { |
130 | - if (! isset($index['name'])) { |
|
130 | + if ( ! isset($index['name'])) { |
|
131 | 131 | $this->indexes[] = $index; |
132 | 132 | |
133 | 133 | return; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | public function addUniqueConstraint(array $constraint) : void |
164 | 164 | { |
165 | - if (! isset($constraint['name'])) { |
|
165 | + if ( ! isset($constraint['name'])) { |
|
166 | 166 | $this->uniqueConstraints[] = $constraint; |
167 | 167 | |
168 | 168 | return; |
@@ -10,6 +10,6 @@ |
||
10 | 10 | { |
11 | 11 | public static function create(string $generatorType) : self |
12 | 12 | { |
13 | - return new self('Unknown generator type: ' . $generatorType); |
|
13 | + return new self('Unknown generator type: '.$generatorType); |
|
14 | 14 | } |
15 | 15 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | // If $value is not a Collection then use an ArrayCollection. |
61 | - if (! $collection instanceof Collection) { |
|
61 | + if ( ! $collection instanceof Collection) { |
|
62 | 62 | // @todo guilhermeblanco Conceptually, support to custom collections by replacing ArrayCollection creation. |
63 | 63 | $collection = new ArrayCollection((array) $collection); |
64 | 64 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $collection = new PersistentCollection($entityManager, $targetClass, $collection); |
69 | 69 | |
70 | 70 | $collection->setOwner($owner, $this); |
71 | - $collection->setDirty(! $collection->isEmpty()); |
|
71 | + $collection->setDirty( ! $collection->isEmpty()); |
|
72 | 72 | $collection->setInitialized(true); |
73 | 73 | |
74 | 74 | return $collection; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | protected function getReflectionService() : RuntimeReflectionService |
19 | 19 | { |
20 | - if (! $this->reflectionService) { |
|
20 | + if ( ! $this->reflectionService) { |
|
21 | 21 | $this->reflectionService = new RuntimeReflectionService(); |
22 | 22 | } |
23 | 23 |
@@ -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 |
@@ -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 |