@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | protected function getBoolToStrFilter(): TwigFilter |
59 | 59 | { |
60 | - return new TwigFilter(static::FILTER_NAME_BOOL_TO_STR, function ($value) { |
|
60 | + return new TwigFilter(static::FILTER_NAME_BOOL_TO_STR, function($value) { |
|
61 | 61 | if (!is_bool($value)) { |
62 | 62 | throw new RuntimeError(sprintf( |
63 | 63 | 'The "%s" filter expects boolean, got "%s".', |
@@ -93,7 +93,7 @@ |
||
93 | 93 | return $returnResponseTransfer; |
94 | 94 | } |
95 | 95 | |
96 | - return $this->getTransactionHandler()->handleTransaction(function () use ($returnCreateRequestTransfer, $itemTransfers) { |
|
96 | + return $this->getTransactionHandler()->handleTransaction(function() use ($returnCreateRequestTransfer, $itemTransfers) { |
|
97 | 97 | return $this->executeCreateReturnTransaction($returnCreateRequestTransfer, $itemTransfers); |
98 | 98 | }); |
99 | 99 | } |
@@ -220,7 +220,7 @@ |
||
220 | 220 | |
221 | 221 | $orderItemExpanderPluginMock |
222 | 222 | ->method('expand') |
223 | - ->willReturnCallback(function (array $itemTransfers) { |
|
223 | + ->willReturnCallback(function(array $itemTransfers) { |
|
224 | 224 | foreach ($itemTransfers as $itemTransfer) { |
225 | 225 | $itemTransfer->setIdSalesOrderItem(static::FAKE_ID_SALES_ORDER_ITEM); |
226 | 226 | } |
@@ -120,7 +120,7 @@ |
||
120 | 120 | |
121 | 121 | $orderItemExpanderPluginMock |
122 | 122 | ->method('expand') |
123 | - ->willReturnCallback(function (array $itemTransfers) { |
|
123 | + ->willReturnCallback(function(array $itemTransfers) { |
|
124 | 124 | foreach ($itemTransfers as $itemTransfer) { |
125 | 125 | $itemTransfer->setIsReturnable(false); |
126 | 126 | } |
@@ -605,15 +605,15 @@ |
||
605 | 605 | $calculationBusinessFactory = new CalculationBusinessFactory(); |
606 | 606 | |
607 | 607 | $container = new Container(); |
608 | - $container[CalculationDependencyProvider::QUOTE_CALCULATOR_PLUGIN_STACK] = function () use ($calculatorPlugins) { |
|
608 | + $container[CalculationDependencyProvider::QUOTE_CALCULATOR_PLUGIN_STACK] = function() use ($calculatorPlugins) { |
|
609 | 609 | return $calculatorPlugins; |
610 | 610 | }; |
611 | 611 | |
612 | - $container[CalculationDependencyProvider::PLUGINS_QUOTE_POST_RECALCULATE] = function () { |
|
612 | + $container[CalculationDependencyProvider::PLUGINS_QUOTE_POST_RECALCULATE] = function() { |
|
613 | 613 | return []; |
614 | 614 | }; |
615 | 615 | |
616 | - $container->set(CalculationDependencyProvider::SERVICE_UTIL_TEXT, function (Container $container) { |
|
616 | + $container->set(CalculationDependencyProvider::SERVICE_UTIL_TEXT, function(Container $container) { |
|
617 | 617 | return new CalculationToUtilTextBridge($container->getLocator()->utilText()->service()); |
618 | 618 | }); |
619 | 619 |
@@ -494,7 +494,7 @@ |
||
494 | 494 | $glossaryFacade = new GlossaryFacade(); |
495 | 495 | $container = new Container(); |
496 | 496 | |
497 | - $container[GlossaryDependencyProvider::FACADE_LOCALE] = function (Container $container) { |
|
497 | + $container[GlossaryDependencyProvider::FACADE_LOCALE] = function(Container $container) { |
|
498 | 498 | return $this->localeFacade; |
499 | 499 | }; |
500 | 500 |
@@ -194,8 +194,7 @@ |
||
194 | 194 | FilterFieldTransfer $filterFieldTransfer |
195 | 195 | ): SpySalesOrderQuery { |
196 | 196 | $comparison = $filterFieldTransfer->getType() === static::SEARCH_TYPE_DATE_FROM ? |
197 | - Criteria::GREATER_EQUAL : |
|
198 | - Criteria::LESS_THAN; |
|
197 | + Criteria::GREATER_EQUAL : Criteria::LESS_THAN; |
|
199 | 198 | |
200 | 199 | $salesOrderQuery->filterByCreatedAt($filterFieldTransfer->getValue(), $comparison); |
201 | 200 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | */ |
61 | 61 | public function updateProductLabelRelations(bool $isTouchEnabled = true) |
62 | 62 | { |
63 | - $this->handleDatabaseTransaction(function () use ($isTouchEnabled) { |
|
63 | + $this->handleDatabaseTransaction(function() use ($isTouchEnabled) { |
|
64 | 64 | $this->executeUpdateProductLabelRelationsTransaction($isTouchEnabled); |
65 | 65 | }); |
66 | 66 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function saveShoppingListItemProductOptions(ShoppingListItemTransfer $shoppingListItemTransfer): ShoppingListItemTransfer |
40 | 40 | { |
41 | - $this->getTransactionHandler()->handleTransaction(function () use ($shoppingListItemTransfer) { |
|
41 | + $this->getTransactionHandler()->handleTransaction(function() use ($shoppingListItemTransfer) { |
|
42 | 42 | $this->executeSaveShoppingListItemProductOptionsTransaction($shoppingListItemTransfer); |
43 | 43 | }); |
44 | 44 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | public function saveShoppingListItemProductOptionsInBulk( |
54 | 54 | ShoppingListItemCollectionTransfer $shoppingListItemCollectionTransfer |
55 | 55 | ): ShoppingListItemCollectionTransfer { |
56 | - return $this->getTransactionHandler()->handleTransaction(function () use ($shoppingListItemCollectionTransfer) { |
|
56 | + return $this->getTransactionHandler()->handleTransaction(function() use ($shoppingListItemCollectionTransfer) { |
|
57 | 57 | $this->executeSaveShoppingListItemProductOptionsTransactionInBulk($shoppingListItemCollectionTransfer); |
58 | 58 | |
59 | 59 | return $shoppingListItemCollectionTransfer; |