@@ -74,7 +74,7 @@ |
||
74 | 74 | $em = $event->getEntityManager(); |
75 | 75 | $uow = $em->getUnitOfWork(); |
76 | 76 | |
77 | - if (! $uow->getOriginalEntityData($this->user)) { |
|
77 | + if ( ! $uow->getOriginalEntityData($this->user)) { |
|
78 | 78 | return; |
79 | 79 | } |
80 | 80 |
@@ -102,7 +102,7 @@ |
||
102 | 102 | |
103 | 103 | protected function onPropertyChanged($propName, $oldValue, $newValue) |
104 | 104 | { |
105 | - if (! $this->listeners) { |
|
105 | + if ( ! $this->listeners) { |
|
106 | 106 | return; |
107 | 107 | } |
108 | 108 |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | { |
202 | 202 | $listener = new ListenerSecondLevelCacheTest( |
203 | 203 | [ |
204 | - Events::postFlush => function () { |
|
204 | + Events::postFlush => function() { |
|
205 | 205 | throw new \RuntimeException('post flush failure'); |
206 | 206 | }, |
207 | 207 | ] |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | |
234 | 234 | $listener = new ListenerSecondLevelCacheTest( |
235 | 235 | [ |
236 | - Events::postUpdate => function () { |
|
236 | + Events::postUpdate => function() { |
|
237 | 237 | throw new \RuntimeException('post update failure'); |
238 | 238 | }, |
239 | 239 | ] |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | self::assertInstanceOf(State::class, $state); |
253 | 253 | self::assertEquals($stateName, $state->getName()); |
254 | 254 | |
255 | - $state->setName($stateName . uniqid()); |
|
255 | + $state->setName($stateName.uniqid()); |
|
256 | 256 | |
257 | 257 | $this->em->persist($state); |
258 | 258 | |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | $this->em->clear(); |
280 | 280 | |
281 | 281 | $listener = new ListenerSecondLevelCacheTest([ |
282 | - Events::postRemove => function () { |
|
282 | + Events::postRemove => function() { |
|
283 | 283 | throw new \RuntimeException('post remove failure'); |
284 | 284 | }, |
285 | 285 | ]); |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | |
343 | 343 | private function dispatch($eventName, $args) |
344 | 344 | { |
345 | - if (! isset($this->callbacks[$eventName])) { |
|
345 | + if ( ! isset($this->callbacks[$eventName])) { |
|
346 | 346 | return; |
347 | 347 | } |
348 | 348 |
@@ -83,7 +83,7 @@ |
||
83 | 83 | return; |
84 | 84 | } |
85 | 85 | |
86 | - if (! in_array($name, ['result3', 'result4'], true)) { |
|
86 | + if ( ! in_array($name, ['result3', 'result4'], true)) { |
|
87 | 87 | return; |
88 | 88 | } |
89 | 89 |
@@ -193,7 +193,7 @@ |
||
193 | 193 | |
194 | 194 | $this->email = $email; |
195 | 195 | |
196 | - if (! $email) { |
|
196 | + if ( ! $email) { |
|
197 | 197 | return; |
198 | 198 | } |
199 | 199 |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | public function removeProduct(ECommerceProduct $product) |
78 | 78 | { |
79 | 79 | $removed = $this->products->removeElement($product); |
80 | - if (! $removed) { |
|
80 | + if ( ! $removed) { |
|
81 | 81 | return; |
82 | 82 | } |
83 | 83 | |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | public function removeChild(ECommerceCategory $child) |
121 | 121 | { |
122 | 122 | $removed = $this->children->removeElement($child); |
123 | - if (! $removed) { |
|
123 | + if ( ! $removed) { |
|
124 | 124 | return; |
125 | 125 | } |
126 | 126 |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | public function removeCategory(ECommerceCategory $category) |
143 | 143 | { |
144 | 144 | $removed = $this->categories->removeElement($category); |
145 | - if (! $removed) { |
|
145 | + if ( ! $removed) { |
|
146 | 146 | return; |
147 | 147 | } |
148 | 148 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | public function removeRelated(ECommerceProduct $related) |
178 | 178 | { |
179 | 179 | $removed = $this->related->removeElement($related); |
180 | - if (! $removed) { |
|
180 | + if ( ! $removed) { |
|
181 | 181 | return; |
182 | 182 | } |
183 | 183 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | public function __clone() |
188 | 188 | { |
189 | 189 | $this->isCloned = true; |
190 | - if (! $this->categories) { |
|
190 | + if ( ! $this->categories) { |
|
191 | 191 | return; |
192 | 192 | } |
193 | 193 |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | private function throwException($method) |
41 | 41 | { |
42 | - if (! isset($this->exceptions[$method]) || empty($this->exceptions[$method])) { |
|
42 | + if ( ! isset($this->exceptions[$method]) || empty($this->exceptions[$method])) { |
|
43 | 43 | return; |
44 | 44 | } |
45 | 45 | |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | |
195 | 195 | $this->throwException(__FUNCTION__); |
196 | 196 | |
197 | - if (! isset($this->locks[$key->hash])) { |
|
197 | + if ( ! isset($this->locks[$key->hash])) { |
|
198 | 198 | return; |
199 | 199 | } |
200 | 200 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | { |
45 | 45 | $this->inserts[] = $entity; |
46 | 46 | |
47 | - if (! $this->class->getValueGenerationPlan()->containsDeferred()) { |
|
47 | + if ( ! $this->class->getValueGenerationPlan()->containsDeferred()) { |
|
48 | 48 | return; |
49 | 49 | } |
50 | 50 |