@@ -31,7 +31,7 @@ |
||
31 | 31 | public function testDecisionRuleWhenCurrencyMatchesShouldReturnTrue(): void |
32 | 32 | { |
33 | 33 | $comparatorMock = $this->createComparatorMock(); |
34 | - $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $currency) { |
|
34 | + $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $currency) { |
|
35 | 35 | return $clauseTransfer->getValue() === $currency; |
36 | 36 | }); |
37 | 37 |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | public function testWhenGrandTotalMatchesShouldReturnTrue(): void |
33 | 33 | { |
34 | 34 | $comparatorMock = $this->createComparatorMock(); |
35 | - $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $grandTotal) { |
|
35 | + $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $grandTotal) { |
|
36 | 36 | return $clauseTransfer->getValue() === $grandTotal; |
37 | 37 | }); |
38 | 38 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | public function testWhenGrandTotalNotMatchingShouldReturnFalse(): void |
59 | 59 | { |
60 | 60 | $comparatorMock = $this->createComparatorMock(); |
61 | - $comparatorMock->method('compare')->willReturnCallback(function (ClauseTransfer $clauseTransfer, $grandTotal) { |
|
61 | + $comparatorMock->method('compare')->willReturnCallback(function(ClauseTransfer $clauseTransfer, $grandTotal) { |
|
62 | 62 | return $clauseTransfer->getValue() === $grandTotal; |
63 | 63 | }); |
64 | 64 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | $currencyConverterMock = $this->createCurrencyConverterMock(); |
109 | - $currencyConverterMock->method('convertDecimalToCent')->willReturnCallback(function (ClauseTransfer $clauseTransfer) { |
|
109 | + $currencyConverterMock->method('convertDecimalToCent')->willReturnCallback(function(ClauseTransfer $clauseTransfer) { |
|
110 | 110 | return $clauseTransfer->setValue($clauseTransfer->getValue() * 100); |
111 | 111 | }); |
112 | 112 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | $salesOrderItemOptionEntityMock |
47 | 47 | ->expects($this->exactly(2)) |
48 | 48 | ->method('save') |
49 | - ->willReturnCallback(function () use ($salesOrderItemOptionEntityMock): void { |
|
49 | + ->willReturnCallback(function() use ($salesOrderItemOptionEntityMock): void { |
|
50 | 50 | $salesOrderItemOptionEntityMock->setIdSalesOrderItemOption(1); |
51 | 51 | }); |
52 | 52 |
@@ -56,7 +56,7 @@ |
||
56 | 56 | ); |
57 | 57 | |
58 | 58 | $optionGroupEntityMock = $this->createProductOptionGroupEntityMock(); |
59 | - $optionGroupEntityMock->method('save')->willReturnCallback(function () use ($optionGroupEntityMock): void { |
|
59 | + $optionGroupEntityMock->method('save')->willReturnCallback(function() use ($optionGroupEntityMock): void { |
|
60 | 60 | $optionGroupEntityMock->setIdProductOptionGroup(1); |
61 | 61 | }); |
62 | 62 |
@@ -99,13 +99,13 @@ discard block |
||
99 | 99 | protected function setupContainerAndFlysystemService(Container $container): Container |
100 | 100 | { |
101 | 101 | $flysystemContainer = new Container(); |
102 | - $flysystemContainer[FlysystemDependencyProvider::PLUGIN_COLLECTION_FILESYSTEM_BUILDER] = function () { |
|
102 | + $flysystemContainer[FlysystemDependencyProvider::PLUGIN_COLLECTION_FILESYSTEM_BUILDER] = function() { |
|
103 | 103 | return [ |
104 | 104 | new LocalFilesystemBuilderPlugin(), |
105 | 105 | ]; |
106 | 106 | }; |
107 | 107 | |
108 | - $flysystemContainer[FlysystemDependencyProvider::PLUGIN_COLLECTION_FLYSYSTEM] = function () { |
|
108 | + $flysystemContainer[FlysystemDependencyProvider::PLUGIN_COLLECTION_FLYSYSTEM] = function() { |
|
109 | 109 | return []; |
110 | 110 | }; |
111 | 111 | |
@@ -127,15 +127,15 @@ discard block |
||
127 | 127 | $fileSystemStreamPlugin = new FileSystemStreamPlugin(); |
128 | 128 | $fileSystemStreamPlugin->setService($flysystemService); |
129 | 129 | |
130 | - $container[FileSystemDependencyProvider::PLUGIN_READER] = function (Container $container) use ($fileSystemReaderPlugin) { |
|
130 | + $container[FileSystemDependencyProvider::PLUGIN_READER] = function(Container $container) use ($fileSystemReaderPlugin) { |
|
131 | 131 | return $fileSystemReaderPlugin; |
132 | 132 | }; |
133 | 133 | |
134 | - $container[FileSystemDependencyProvider::PLUGIN_WRITER] = function (Container $container) use ($fileSystemWriterPlugin) { |
|
134 | + $container[FileSystemDependencyProvider::PLUGIN_WRITER] = function(Container $container) use ($fileSystemWriterPlugin) { |
|
135 | 135 | return $fileSystemWriterPlugin; |
136 | 136 | }; |
137 | 137 | |
138 | - $container[FileSystemDependencyProvider::PLUGIN_STREAM] = function (Container $container) use ($fileSystemStreamPlugin) { |
|
138 | + $container[FileSystemDependencyProvider::PLUGIN_STREAM] = function(Container $container) use ($fileSystemStreamPlugin) { |
|
139 | 139 | return $fileSystemStreamPlugin; |
140 | 140 | }; |
141 | 141 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | $idCmsPage = $this->getCmsFacade()->createPage($cmsPageTransfer); |
36 | 36 | |
37 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($idCmsPage): void { |
|
37 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($idCmsPage): void { |
|
38 | 38 | $this->cleanupCmsPage($idCmsPage); |
39 | 39 | }); |
40 | 40 |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | public function testUpdateCmsVersionPluginPersistsUserInformation(): void |
52 | 52 | { |
53 | 53 | $container = new Container(); |
54 | - $container[CmsUserConnectorDependencyProvider::FACADE_USER] = function (Container $container) { |
|
54 | + $container[CmsUserConnectorDependencyProvider::FACADE_USER] = function(Container $container) { |
|
55 | 55 | return $this->createUserMockBridgeForUpdating(); |
56 | 56 | }; |
57 | 57 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | public function testExpandCmsVersionTransferAddsUserInformationToCmsVersionTransfer(): void |
81 | 81 | { |
82 | 82 | $container = new Container(); |
83 | - $container[CmsUserConnectorDependencyProvider::FACADE_USER] = function (Container $container) { |
|
83 | + $container[CmsUserConnectorDependencyProvider::FACADE_USER] = function(Container $container) { |
|
84 | 84 | return $this->createUserMockBridgeForExpanding(); |
85 | 85 | }; |
86 | 86 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | */ |
102 | 102 | protected function prepareTest(Container $container): void |
103 | 103 | { |
104 | - $container[CmsUserConnectorDependencyProvider::QUERY_CONTAINER_CMS] = function (Container $container) { |
|
104 | + $container[CmsUserConnectorDependencyProvider::QUERY_CONTAINER_CMS] = function(Container $container) { |
|
105 | 105 | return new CmsUserConnectorToCmsQueryContainer($container->getLocator() |
106 | 106 | ->cms() |
107 | 107 | ->queryContainer()); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | $productQuantityTransfer = $this->storeProductQuantity($productQuantityTransfer); |
36 | 36 | |
37 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($productQuantityTransfer): void { |
|
37 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($productQuantityTransfer): void { |
|
38 | 38 | $this->cleanupProductQuantity($productQuantityTransfer->getIdProductQuantity()); |
39 | 39 | }); |
40 | 40 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | throw new TestRuntimeException(sprintf('Could not create customer %s', $customerTransfer->getEmail())); |
49 | 49 | } |
50 | 50 | |
51 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($customerResponseTransfer): void { |
|
51 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($customerResponseTransfer): void { |
|
52 | 52 | $this->debug(sprintf('Deleting Customer: %s', $customerResponseTransfer->getCustomerTransfer()->getEmail())); |
53 | 53 | $this->getCustomerFacade()->deleteCustomer($customerResponseTransfer->getCustomerTransfer()); |
54 | 54 | }); |