@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | protected function addKernelService(ContainerInterface $container): ContainerInterface |
80 | 80 | { |
81 | - $container->set(static::SERVICE_KERNEL, function (ContainerInterface $container) { |
|
81 | + $container->set(static::SERVICE_KERNEL, function(ContainerInterface $container) { |
|
82 | 82 | return new HttpKernel( |
83 | 83 | $this->getEventDispatcher($container), |
84 | 84 | $this->getResolver($container), |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | protected function addRequestStackService(ContainerInterface $container): ContainerInterface |
98 | 98 | { |
99 | - $container->set(static::SERVICE_REQUEST_STACK, function () { |
|
99 | + $container->set(static::SERVICE_REQUEST_STACK, function() { |
|
100 | 100 | return new RequestStack(); |
101 | 101 | }); |
102 | 102 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | protected function addRequestContextService(ContainerInterface $container): ContainerInterface |
112 | 112 | { |
113 | - $container->set(static::SERVICE_REQUEST_CONTEXT, function () { |
|
113 | + $container->set(static::SERVICE_REQUEST_CONTEXT, function() { |
|
114 | 114 | $context = new RequestContext(); |
115 | 115 | |
116 | 116 | $context->setHttpPort($this->getConfig()->getHttpPort()); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | protected function addSubRequestHandlerService(ContainerInterface $container): ContainerInterface |
131 | 131 | { |
132 | - $container->set(static::SERVICE_SUB_REQUEST, function (ContainerInterface $container): SubRequestHandlerInterface { |
|
132 | + $container->set(static::SERVICE_SUB_REQUEST, function(ContainerInterface $container): SubRequestHandlerInterface { |
|
133 | 133 | return new SubRequestHandler($container->get(static::SERVICE_KERNEL)); |
134 | 134 | }); |
135 | 135 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | */ |
160 | 160 | protected function addCookie(ContainerInterface $container): ContainerInterface |
161 | 161 | { |
162 | - $container->set(static::SERVICE_COOKIES, function () { |
|
162 | + $container->set(static::SERVICE_COOKIES, function() { |
|
163 | 163 | return new ArrayObject(); |
164 | 164 | }); |
165 | 165 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function provide(ContainerInterface $container): ContainerInterface |
31 | 31 | { |
32 | - $container->set(static::SERVICE_FLASH_MESSENGER, function (ContainerInterface $container) { |
|
32 | + $container->set(static::SERVICE_FLASH_MESSENGER, function(ContainerInterface $container) { |
|
33 | 33 | return new FlashMessenger($this->getSession($container)->getFlashBag()); |
34 | 34 | }); |
35 | 35 |
@@ -214,7 +214,7 @@ |
||
214 | 214 | { |
215 | 215 | $stockTransfers = $this->stockFacade->getAvailableWarehousesForStore($storeTransfer); |
216 | 216 | |
217 | - return array_map(function (StockTransfer $stockTransfer): string { |
|
217 | + return array_map(function(StockTransfer $stockTransfer): string { |
|
218 | 218 | return $stockTransfer->getName(); |
219 | 219 | }, $stockTransfers); |
220 | 220 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | $productPackagingUnitEntity = $this->storeProductPackagingUnit($productPackagingUnitTransfer, $productPackagingUnitAmountTransfer); |
37 | 37 | |
38 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($productPackagingUnitEntity): void { |
|
38 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($productPackagingUnitEntity): void { |
|
39 | 39 | $this->cleanupProductPackagingUnit($productPackagingUnitEntity); |
40 | 40 | }); |
41 | 41 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $productPackagingUnitTypeTransfer = $this->storeProductPackagingUnitType($productPackagingUnitTypeTransfer); |
32 | 32 | |
33 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($productPackagingUnitTypeTransfer): void { |
|
33 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($productPackagingUnitTypeTransfer): void { |
|
34 | 34 | $this->cleanupProductPackagingUnitType($productPackagingUnitTypeTransfer); |
35 | 35 | }); |
36 | 36 |
@@ -107,7 +107,7 @@ |
||
107 | 107 | */ |
108 | 108 | protected function filterItemsWithAmount(array $itemTransfers): array |
109 | 109 | { |
110 | - return array_filter($itemTransfers, function (ItemTransfer $itemTransfer) { |
|
110 | + return array_filter($itemTransfers, function(ItemTransfer $itemTransfer) { |
|
111 | 111 | return $itemTransfer->getAmount() === null; |
112 | 112 | }); |
113 | 113 | } |
@@ -498,7 +498,7 @@ |
||
498 | 498 | $availabilityFacade = $this->tester->getFacade(); |
499 | 499 | |
500 | 500 | $container = new Container(); |
501 | - $container->set(AvailabilityDependencyProvider::FACADE_STOCK, function () { |
|
501 | + $container->set(AvailabilityDependencyProvider::FACADE_STOCK, function() { |
|
502 | 502 | return $this->createStockFacadeMock(); |
503 | 503 | }); |
504 | 504 | $availabilityBusinessFactory = new AvailabilityBusinessFactory(); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function updateStockProductsRelatedToStock(StockTransfer $stockTransfer): void |
44 | 44 | { |
45 | - $this->getTransactionHandler()->handleTransaction(function () use ($stockTransfer): void { |
|
45 | + $this->getTransactionHandler()->handleTransaction(function() use ($stockTransfer): void { |
|
46 | 46 | $this->executeUpdateStockProductsRelatedToStockTransaction($stockTransfer); |
47 | 47 | }); |
48 | 48 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | protected function getStoreNamesFromStoreTransferCollection(array $storeTransfers): array |
53 | 53 | { |
54 | - return array_map(function (StoreTransfer $storeTransfer): string { |
|
54 | + return array_map(function(StoreTransfer $storeTransfer): string { |
|
55 | 55 | return $storeTransfer->getName(); |
56 | 56 | }, $storeTransfers); |
57 | 57 | } |