@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | return (new ProductDiscontinuedResponseTransfer())->setIsSuccessful(false); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productDiscontinueRequestTransfer) { |
|
| 81 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productDiscontinueRequestTransfer) { |
|
| 82 | 82 | return $this->executeCreateTransaction($productDiscontinueRequestTransfer); |
| 83 | 83 | }); |
| 84 | 84 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | return $productDiscontinuedResponseTransfer; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productDiscontinuedTransfer) { |
|
| 106 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productDiscontinuedTransfer) { |
|
| 107 | 107 | return $this->executeDeleteTransaction($productDiscontinuedTransfer); |
| 108 | 108 | }); |
| 109 | 109 | } |
@@ -98,8 +98,7 @@ |
||
| 98 | 98 | $this->defaultUrl = Url::generate(static::TABLE_IDENTIFIER, $parameters)->build(); |
| 99 | 99 | $this->tableClass = static::TABLE_CLASS; |
| 100 | 100 | $identifierSuffix = !$this->identifierSuffix ? |
| 101 | - static::TABLE_IDENTIFIER : |
|
| 102 | - sprintf('%s-%s', static::TABLE_IDENTIFIER, $this->identifierSuffix); |
|
| 101 | + static::TABLE_IDENTIFIER : sprintf('%s-%s', static::TABLE_IDENTIFIER, $this->identifierSuffix); |
|
| 103 | 102 | $this->setTableIdentifier($identifierSuffix); |
| 104 | 103 | |
| 105 | 104 | $this->disableSearch(); |
@@ -84,8 +84,7 @@ |
||
| 84 | 84 | $this->tableClass = static::TABLE_CLASS; |
| 85 | 85 | |
| 86 | 86 | $identifierSuffix = !$this->identifierSuffix ? |
| 87 | - static::TABLE_IDENTIFIER : |
|
| 88 | - sprintf('%s-%s', static::TABLE_IDENTIFIER, $this->identifierSuffix); |
|
| 87 | + static::TABLE_IDENTIFIER : sprintf('%s-%s', static::TABLE_IDENTIFIER, $this->identifierSuffix); |
|
| 89 | 88 | $this->setTableIdentifier($identifierSuffix); |
| 90 | 89 | |
| 91 | 90 | $config->setHeader([ |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | $container = new Container(); |
| 81 | 81 | $dependencyProvider = new ProductBundleProductListConnectorDependencyProvider(); |
| 82 | 82 | $dependencyProvider->provideBusinessLayerDependencies($container); |
| 83 | - $container[ProductBundleProductListConnectorDependencyProvider::FACADE_PRODUCT_BUNDLE] = function (Container $container) use ($productBundleProductListConnectorToProductBundleFacadeBridgeMock) { |
|
| 83 | + $container[ProductBundleProductListConnectorDependencyProvider::FACADE_PRODUCT_BUNDLE] = function(Container $container) use ($productBundleProductListConnectorToProductBundleFacadeBridgeMock) { |
|
| 84 | 84 | return $productBundleProductListConnectorToProductBundleFacadeBridgeMock; |
| 85 | 85 | }; |
| 86 | 86 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | { |
| 69 | 69 | parent::setUp(); |
| 70 | 70 | |
| 71 | - $this->tester->setDependency(DataImportDependencyProvider::CLIENT_QUEUE, function () { |
|
| 71 | + $this->tester->setDependency(DataImportDependencyProvider::CLIENT_QUEUE, function() { |
|
| 72 | 72 | return $this->createQueueClientMock(); |
| 73 | 73 | }); |
| 74 | 74 | |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | ->requireIdPriceProduct() |
| 61 | 61 | ->requirePriceDimension(); |
| 62 | 62 | |
| 63 | - $this->getTransactionHandler()->handleTransaction(function () use ($priceProductTransfer): void { |
|
| 63 | + $this->getTransactionHandler()->handleTransaction(function() use ($priceProductTransfer): void { |
|
| 64 | 64 | $idPriceProductStore = $this->priceProductRepository->findIdPriceProductStoreByPriceProduct($priceProductTransfer); |
| 65 | 65 | |
| 66 | 66 | if ($idPriceProductStore !== null) { |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | */ |
| 65 | 65 | public function resetQuoteLock(QuoteTransfer $quoteTransfer): QuoteResponseTransfer |
| 66 | 66 | { |
| 67 | - return $this->getTransactionHandler()->handleTransaction(function () use ($quoteTransfer) { |
|
| 67 | + return $this->getTransactionHandler()->handleTransaction(function() use ($quoteTransfer) { |
|
| 68 | 68 | return $this->executeResetQuoteLockTransaction($quoteTransfer); |
| 69 | 69 | }); |
| 70 | 70 | } |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | |
| 120 | 120 | $quoteRequestAgentStatusMock |
| 121 | 121 | ->method('isQuoteRequestEditable') |
| 122 | - ->willReturnCallback(function (QuoteRequestTransfer $quoteRequestTransfer) { |
|
| 122 | + ->willReturnCallback(function(QuoteRequestTransfer $quoteRequestTransfer) { |
|
| 123 | 123 | return $quoteRequestTransfer->getStatus() === SharedQuoteRequestAgentConfig::STATUS_IN_PROGRESS; |
| 124 | 124 | }); |
| 125 | 125 | |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | |
| 199 | 199 | $quoteRequestToPersistentCartClientInterfaceMock->expects($this->any()) |
| 200 | 200 | ->method('persistQuote') |
| 201 | - ->willReturnCallback(function (QuoteTransfer $quoteTransfer) { |
|
| 201 | + ->willReturnCallback(function(QuoteTransfer $quoteTransfer) { |
|
| 202 | 202 | return (new QuoteResponseTransfer())->setQuoteTransfer($quoteTransfer)->setIsSuccessful(true); |
| 203 | 203 | }); |
| 204 | 204 | |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | |
| 225 | 225 | $quoteRequestToCartClientInterfaceMock->expects($this->any()) |
| 226 | 226 | ->method('lockQuote') |
| 227 | - ->willReturnCallback(function (QuoteTransfer $quoteTransfer) { |
|
| 227 | + ->willReturnCallback(function(QuoteTransfer $quoteTransfer) { |
|
| 228 | 228 | return $quoteTransfer->setIsLocked(true); |
| 229 | 229 | }); |
| 230 | 230 | |