@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public function migrate(string $cmsVersionOriginData, string $cmsVersionTargetData): void |
| 45 | 45 | { |
| 46 | - $this->getTransactionHandler()->handleTransaction(function () use ($cmsVersionOriginData, $cmsVersionTargetData) { |
|
| 46 | + $this->getTransactionHandler()->handleTransaction(function() use ($cmsVersionOriginData, $cmsVersionTargetData) { |
|
| 47 | 47 | $this->executeMigrateTransaction($cmsVersionOriginData, $cmsVersionTargetData); |
| 48 | 48 | }); |
| 49 | 49 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | public function migrate(CmsVersionDataTransfer $originVersionDataTransfer, CmsVersionDataTransfer $targetVersionDataTransfer): void |
| 47 | 47 | { |
| 48 | - $this->getTransactionHandler()->handleTransaction(function () use ($originVersionDataTransfer, $targetVersionDataTransfer) { |
|
| 48 | + $this->getTransactionHandler()->handleTransaction(function() use ($originVersionDataTransfer, $targetVersionDataTransfer) { |
|
| 49 | 49 | $this->executeMigrateTransaction($originVersionDataTransfer, $targetVersionDataTransfer); |
| 50 | 50 | }); |
| 51 | 51 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function migrate(CmsVersionDataTransfer $originVersionDataTransfer, CmsVersionDataTransfer $targetVersionDataTransfer): void |
| 46 | 46 | { |
| 47 | - $this->getTransactionHandler()->handleTransaction(function () use ($targetVersionDataTransfer) { |
|
| 47 | + $this->getTransactionHandler()->handleTransaction(function() use ($targetVersionDataTransfer) { |
|
| 48 | 48 | $this->executeMigrateTransaction($targetVersionDataTransfer); |
| 49 | 49 | }); |
| 50 | 50 | } |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | */ |
| 92 | 92 | protected function migrateVersions(SpyCmsVersion $originVersionEntity, SpyCmsVersion $targetVersionEntity, int $idCmsPage, int $version): CmsVersionTransfer |
| 93 | 93 | { |
| 94 | - return $this->getTransactionHandler()->handleTransaction(function () use ($originVersionEntity, $targetVersionEntity, $idCmsPage, $version) { |
|
| 94 | + return $this->getTransactionHandler()->handleTransaction(function() use ($originVersionEntity, $targetVersionEntity, $idCmsPage, $version) { |
|
| 95 | 95 | return $this->executeMigrateVersion($originVersionEntity, $targetVersionEntity, $idCmsPage, $version); |
| 96 | 96 | }); |
| 97 | 97 | } |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | */ |
| 107 | 107 | protected function saveAndTouchCmsVersion(string $data, int $idCmsPage, string $versionName, int $versionNumber): CmsVersionTransfer |
| 108 | 108 | { |
| 109 | - return $this->getTransactionHandler()->handleTransaction(function () use ($data, $idCmsPage, $versionName, $versionNumber) { |
|
| 109 | + return $this->getTransactionHandler()->handleTransaction(function() use ($data, $idCmsPage, $versionName, $versionNumber) { |
|
| 110 | 110 | return $this->executeSaveAndTouchCmsVersionTransaction($data, $idCmsPage, $versionName, $versionNumber); |
| 111 | 111 | }); |
| 112 | 112 | } |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | protected function getIdStores(ArrayObject $relatedStores): array |
| 57 | 57 | { |
| 58 | - return array_map(function (StoreTransfer $storeTransfer) { |
|
| 58 | + return array_map(function(StoreTransfer $storeTransfer) { |
|
| 59 | 59 | return $storeTransfer->getIdStore(); |
| 60 | 60 | }, $relatedStores->getArrayCopy()); |
| 61 | 61 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | public function migrate(CmsVersionDataTransfer $originVersionDataTransfer, CmsVersionDataTransfer $targetVersionDataTransfer): void |
| 47 | 47 | { |
| 48 | - $this->getTransactionHandler()->handleTransaction(function () use ($originVersionDataTransfer, $targetVersionDataTransfer) { |
|
| 48 | + $this->getTransactionHandler()->handleTransaction(function() use ($originVersionDataTransfer, $targetVersionDataTransfer) { |
|
| 49 | 49 | $this->executeMigrateTransaction($originVersionDataTransfer, $targetVersionDataTransfer); |
| 50 | 50 | }); |
| 51 | 51 | } |
@@ -134,9 +134,9 @@ |
||
| 134 | 134 | return $this->zedClient->getSuccessStatusMessages(); |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | - /** |
|
| 138 | - * @return void |
|
| 139 | - */ |
|
| 137 | + /** |
|
| 138 | + * @return void |
|
| 139 | + */ |
|
| 140 | 140 | protected function pushResponseErrorMessagesToMessenger(): void |
| 141 | 141 | { |
| 142 | 142 | foreach ($this->getResponsesErrorMessages() as $errorMessage) { |
@@ -62,10 +62,10 @@ |
||
| 62 | 62 | { |
| 63 | 63 | $utilEncodingService = $this->getMockBuilder(SynchronizationToUtilEncodingServiceInterface::class)->getMock(); |
| 64 | 64 | |
| 65 | - $utilEncodingService->method('decodeJson')->willReturnCallback(function ($jsonValue, $assoc, $depth = null, $options = null) { |
|
| 65 | + $utilEncodingService->method('decodeJson')->willReturnCallback(function($jsonValue, $assoc, $depth = null, $options = null) { |
|
| 66 | 66 | return json_decode($jsonValue, $assoc); |
| 67 | 67 | }); |
| 68 | - $utilEncodingService->method('encodeJson')->willReturnCallback(function ($array) { |
|
| 68 | + $utilEncodingService->method('encodeJson')->willReturnCallback(function($array) { |
|
| 69 | 69 | return json_encode($array); |
| 70 | 70 | }); |
| 71 | 71 | |