@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | ->createCompanyUserInvitation($companyUserInvitationCreateRequestTransfer) |
49 | 49 | ->getCompanyUserInvitation(); |
50 | 50 | |
51 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($companyUserInvitationTransfer): void { |
|
51 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($companyUserInvitationTransfer): void { |
|
52 | 52 | $this->setDependencies(); |
53 | 53 | |
54 | 54 | $companyUserInvitationDeleteRequestTransfer = (new CompanyUserInvitationDeleteRequestTransfer()) |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $companyUserInvitationTransfer = (new CompanyUserInvitationBuilder($seedData))->build(); |
72 | 72 | $companyUserInvitationTransfer->requireFkCompanyUser(); |
73 | 73 | |
74 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($companyUserInvitationTransfer): void { |
|
74 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($companyUserInvitationTransfer): void { |
|
75 | 75 | $this->setDependencies(); |
76 | 76 | |
77 | 77 | $criteriaFilter = (new CompanyUserInvitationCriteriaFilterTransfer()) |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function testShouldCommitWhenNoErrors(): void |
45 | 45 | { |
46 | - $callback = function (): void { |
|
46 | + $callback = function(): void { |
|
47 | 47 | }; |
48 | 48 | |
49 | 49 | $this->connection |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function testShouldCatchExceptionAndRollback(): void |
68 | 68 | { |
69 | - $callback = function (): void { |
|
69 | + $callback = function(): void { |
|
70 | 70 | throw new Exception('Error when saving'); |
71 | 71 | }; |
72 | 72 |
@@ -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(); |