@@ -310,7 +310,7 @@ |
||
310 | 310 | * |
311 | 311 | * @return string |
312 | 312 | */ |
313 | - $quoteFunction = function ($value) { |
|
313 | + $quoteFunction = function($value) { |
|
314 | 314 | return "'$value'"; |
315 | 315 | }; |
316 | 316 |
@@ -219,14 +219,14 @@ |
||
219 | 219 | $builder |
220 | 220 | ->get($fieldName) |
221 | 221 | ->addModelTransformer(new CallbackTransformer( |
222 | - function ($dateAsString) { |
|
222 | + function($dateAsString) { |
|
223 | 223 | if (!$dateAsString) { |
224 | 224 | return null; |
225 | 225 | } |
226 | 226 | |
227 | 227 | return new DateTime($dateAsString); |
228 | 228 | }, |
229 | - function ($dateAsObject) { |
|
229 | + function($dateAsObject) { |
|
230 | 230 | if (!$dateAsObject) { |
231 | 231 | return null; |
232 | 232 | } |
@@ -192,12 +192,12 @@ |
||
192 | 192 | static::FIELD_DYNAMIC_FLAG, |
193 | 193 | CheckboxType::class, |
194 | 194 | [ |
195 | - 'label' => 'Is Dynamic', |
|
196 | - 'required' => false, |
|
197 | - 'disabled' => true, |
|
198 | - 'attr' => [ |
|
199 | - 'readonly' => true, |
|
200 | - ], |
|
195 | + 'label' => 'Is Dynamic', |
|
196 | + 'required' => false, |
|
197 | + 'disabled' => true, |
|
198 | + 'attr' => [ |
|
199 | + 'readonly' => true, |
|
200 | + ], |
|
201 | 201 | ], |
202 | 202 | ); |
203 | 203 |
@@ -266,15 +266,15 @@ |
||
266 | 266 | |
267 | 267 | $businessLayerDependencies = $eventDependencyProvider->provideBusinessLayerDependencies($container); |
268 | 268 | |
269 | - $container[EventDependencyProvider::CLIENT_QUEUE] = function () use ($queueClientMock) { |
|
269 | + $container[EventDependencyProvider::CLIENT_QUEUE] = function() use ($queueClientMock) { |
|
270 | 270 | return $queueClientMock; |
271 | 271 | }; |
272 | 272 | |
273 | - $container[EventDependencyProvider::EVENT_LISTENERS] = function () use ($eventCollection) { |
|
273 | + $container[EventDependencyProvider::EVENT_LISTENERS] = function() use ($eventCollection) { |
|
274 | 274 | return $eventCollection; |
275 | 275 | }; |
276 | 276 | |
277 | - $container[EventDependencyProvider::EVENT_SUBSCRIBERS] = function () use ($eventSubscriberCollection) { |
|
277 | + $container[EventDependencyProvider::EVENT_SUBSCRIBERS] = function() use ($eventSubscriberCollection) { |
|
278 | 278 | return $eventSubscriberCollection; |
279 | 279 | }; |
280 | 280 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | $this->assertProductGroupForExtension($productGroupTransfer); |
48 | 48 | |
49 | - return $this->handleDatabaseTransaction(function () use ($productGroupTransfer) { |
|
49 | + return $this->handleDatabaseTransaction(function() use ($productGroupTransfer) { |
|
50 | 50 | return $this->executeRemoveFromProductGroupTransaction($productGroupTransfer); |
51 | 51 | }); |
52 | 52 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | return $productGroupTransfer; |
42 | 42 | } |
43 | 43 | |
44 | - return $this->handleDatabaseTransaction(function () use ($productGroupTransfer) { |
|
44 | + return $this->handleDatabaseTransaction(function() use ($productGroupTransfer) { |
|
45 | 45 | return $this->executeCreateProductGroupTransaction($productGroupTransfer); |
46 | 46 | }); |
47 | 47 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | $this->assertProductGroupForUpdate($productGroupTransfer); |
48 | 48 | |
49 | - return $this->handleDatabaseTransaction(function () use ($productGroupTransfer) { |
|
49 | + return $this->handleDatabaseTransaction(function() use ($productGroupTransfer) { |
|
50 | 50 | return $this->executeUpdateProductGroupTransaction($productGroupTransfer); |
51 | 51 | }); |
52 | 52 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | { |
61 | 61 | $this->assertProductGroupForUpdate($productGroupTransfer); |
62 | 62 | |
63 | - return $this->handleDatabaseTransaction(function () use ($productGroupTransfer) { |
|
63 | + return $this->handleDatabaseTransaction(function() use ($productGroupTransfer) { |
|
64 | 64 | return $this->executeUpdateProductGroupTransaction($productGroupTransfer); |
65 | 65 | }); |
66 | 66 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | $this->assertProductGroupForExtension($productGroupTransfer); |
48 | 48 | |
49 | - return $this->handleDatabaseTransaction(function () use ($productGroupTransfer) { |
|
49 | + return $this->handleDatabaseTransaction(function() use ($productGroupTransfer) { |
|
50 | 50 | return $this->executeExtendProductGroupTransaction($productGroupTransfer); |
51 | 51 | }); |
52 | 52 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | $this->assertProductGroupForUpdate($productGroupTransfer); |
47 | 47 | |
48 | - $this->handleDatabaseTransaction(function () use ($productGroupTransfer) { |
|
48 | + $this->handleDatabaseTransaction(function() use ($productGroupTransfer) { |
|
49 | 49 | $this->executeUpdateProductGroupTransaction($productGroupTransfer); |
50 | 50 | }); |
51 | 51 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | */ |
51 | 51 | protected function sortItemsBySku(array $items) |
52 | 52 | { |
53 | - usort($items, function (ItemTransfer $item1, ItemTransfer $item2) { |
|
53 | + usort($items, function(ItemTransfer $item1, ItemTransfer $item2) { |
|
54 | 54 | if ($item1->getSku() !== $item2->getSku()) { |
55 | 55 | return $item1->getSku() > $item2->getSku(); |
56 | 56 | } |