@@ -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 |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | */ |
142 | 142 | protected function disableIsDefaultFieldWhenChecked(FormBuilderInterface $builder) |
143 | 143 | { |
144 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
144 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
145 | 145 | /** @var \Generated\Shared\Transfer\CompanyRoleTransfer $companyRoleTransfer */ |
146 | 146 | $companyRoleTransfer = $event->getData(); |
147 | 147 | $form = $event->getForm(); |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | */ |
204 | 204 | protected function getInputDataCallbackPermissionCollectionTransformer(): Closure |
205 | 205 | { |
206 | - return function ($permissionCollection = []): array { |
|
206 | + return function($permissionCollection = []): array { |
|
207 | 207 | $permissions = []; |
208 | 208 | if (!empty($permissionCollection[PermissionCollectionTransfer::PERMISSIONS])) { |
209 | 209 | foreach ($permissionCollection[PermissionCollectionTransfer::PERMISSIONS] as $permission) { |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | */ |
221 | 221 | protected function getOutputDataCallbackPermissionCollectionTransformer(): Closure |
222 | 222 | { |
223 | - return function ($permissionCollectionSubmitted = []): PermissionCollectionTransfer { |
|
223 | + return function($permissionCollectionSubmitted = []): PermissionCollectionTransfer { |
|
224 | 224 | $permissionCollectionTransfer = new PermissionCollectionTransfer(); |
225 | 225 | foreach ($permissionCollectionSubmitted as $permission) { |
226 | 226 | $permissionTransfer = (new PermissionTransfer()) |