@@ -94,7 +94,7 @@ |
||
94 | 94 | $splFileInfoMock->method('getExtension')->willReturn(static::SCHEMA_DEFINITION_FILE_EXTENSION); |
95 | 95 | |
96 | 96 | $finderMock = $this->createMock(Finder::class); |
97 | - $finderMock->method('getIterator')->willReturnCallback(function () use ($splFileInfoMock) { |
|
97 | + $finderMock->method('getIterator')->willReturnCallback(function() use ($splFileInfoMock) { |
|
98 | 98 | yield $splFileInfoMock; |
99 | 99 | }); |
100 | 100 |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | ->setMethods(['buildRepositorySettings']) |
354 | 354 | ->getMock(); |
355 | 355 | |
356 | - $repositoryMock->method('buildRepositorySettings')->willReturnCallback(function (): array { |
|
356 | + $repositoryMock->method('buildRepositorySettings')->willReturnCallback(function(): array { |
|
357 | 357 | $settings = func_get_arg(2) ?? []; |
358 | 358 | |
359 | 359 | return array_merge( |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | */ |
451 | 451 | protected function arrangeEnvironmentForMultiIndexTest(array $indexes): void |
452 | 452 | { |
453 | - $indexNames = array_map(function (Index $index) { |
|
453 | + $indexNames = array_map(function(Index $index) { |
|
454 | 454 | return $index->getName(); |
455 | 455 | }, $indexes); |
456 | 456 |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | protected function addCleanup(Index $index): void |
81 | 81 | { |
82 | - $this->cleanup[$index->getName()] = function () use ($index) { |
|
82 | + $this->cleanup[$index->getName()] = function() use ($index) { |
|
83 | 83 | if ($index->exists()) { |
84 | 84 | $index->delete(); |
85 | 85 | |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | */ |
240 | 240 | public function addCleanupForSnapshotInRepository(string $repositoryName, string $snapshotName): void |
241 | 241 | { |
242 | - $this->cleanup[] = function () use ($repositoryName, $snapshotName) { |
|
242 | + $this->cleanup[] = function() use ($repositoryName, $snapshotName) { |
|
243 | 243 | if ($this->existsSnapshotInRepository($repositoryName, $snapshotName)) { |
244 | 244 | $this->getSnapshot()->deleteSnapshot($repositoryName, $snapshotName); |
245 | 245 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | protected function addCartCodeFacade(Container $container): Container |
43 | 43 | { |
44 | - $container->set(static::FACADE_CART_CODE, function (Container $container) { |
|
44 | + $container->set(static::FACADE_CART_CODE, function(Container $container) { |
|
45 | 45 | return new CartCodesRestApiToCartCodeFacadeBridge($container->getLocator()->cartCode()->facade()); |
46 | 46 | }); |
47 | 47 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | protected function addCartRestApiFacade(Container $container): Container |
57 | 57 | { |
58 | - $container->set(static::FACADE_CARTS_REST_API, function (Container $container) { |
|
58 | + $container->set(static::FACADE_CARTS_REST_API, function(Container $container) { |
|
59 | 59 | return new CartCodesRestApiToCartsRestApiFacadeBridge($container->getLocator()->cartsRestApi()->facade()); |
60 | 60 | }); |
61 | 61 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | protected function addZedRequestClient(Container $container): Container |
37 | 37 | { |
38 | - $container->set(static::CLIENT_ZED_REQUEST, function (Container $container) { |
|
38 | + $container->set(static::CLIENT_ZED_REQUEST, function(Container $container) { |
|
39 | 39 | return new CartCodesRestApiToZedRequestClientBridge($container->getLocator()->zedRequest()->client()); |
40 | 40 | }); |
41 | 41 |
@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | parent::setUp(); |
42 | 42 | |
43 | - $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function (Container $container) { |
|
43 | + $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function(Container $container) { |
|
44 | 44 | return [ |
45 | 45 | $container->getLocator()->rabbitMq()->client()->createQueueAdapter(), |
46 | 46 | ]; |
@@ -283,7 +283,7 @@ |
||
283 | 283 | */ |
284 | 284 | protected function pairRemainingCmsBlockStorageEntities(array $mappedCmsBlockStorageEntities, array $pairs): array |
285 | 285 | { |
286 | - array_walk_recursive($mappedCmsBlockStorageEntities, function (SpyCmsBlockStorage $cmsBlockStorageEntity) use (&$pairs) { |
|
286 | + array_walk_recursive($mappedCmsBlockStorageEntities, function(SpyCmsBlockStorage $cmsBlockStorageEntity) use (&$pairs) { |
|
287 | 287 | $pairs[] = [ |
288 | 288 | static::CMS_BLOCK_ENTITY => null, |
289 | 289 | static::CMS_BLOCK_STORAGE_ENTITY => $cmsBlockStorageEntity, |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | protected function addUtilSanitizeService(Container $container): Container |
58 | 58 | { |
59 | - $container->set(static::SERVICE_UTIL_SANITIZE, function (Container $container) { |
|
59 | + $container->set(static::SERVICE_UTIL_SANITIZE, function(Container $container) { |
|
60 | 60 | return new CmsBlockStorageToUtilSanitizeServiceBridge($container->getLocator()->utilSanitize()->service()); |
61 | 61 | }); |
62 | 62 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | protected function addEventBehaviorFacade(Container $container): Container |
72 | 72 | { |
73 | - $container->set(static::FACADE_EVENT_BEHAVIOR, function (Container $container) { |
|
73 | + $container->set(static::FACADE_EVENT_BEHAVIOR, function(Container $container) { |
|
74 | 74 | return new CmsBlockStorageToEventBehaviorFacadeBridge($container->getLocator()->eventBehavior()->facade()); |
75 | 75 | }); |
76 | 76 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | protected function addContentWidgetDataExpanderPlugin(Container $container): Container |
86 | 86 | { |
87 | - $container->set(static::PLUGIN_CONTENT_WIDGET_DATA_EXPANDER, function () { |
|
87 | + $container->set(static::PLUGIN_CONTENT_WIDGET_DATA_EXPANDER, function() { |
|
88 | 88 | return $this->getContentWidgetDataExpanderPlugins(); |
89 | 89 | }); |
90 | 90 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | */ |
99 | 99 | protected function addStoreFacade(Container $container): Container |
100 | 100 | { |
101 | - $container->set(static::FACADE_STORE, function (Container $container) { |
|
101 | + $container->set(static::FACADE_STORE, function(Container $container) { |
|
102 | 102 | return new CmsBlockStorageToStoreFacadeBridge($container->getLocator()->store()->facade()); |
103 | 103 | }); |
104 | 104 |
@@ -72,8 +72,7 @@ |
||
72 | 72 | |
73 | 73 | if ($isActive) { |
74 | 74 | $templatePath = !$templateIdentifier && $cmsBlockTransfer->getCmsBlockTemplate() ? |
75 | - $cmsBlockTransfer->getCmsBlockTemplate()->getTemplatePath() : |
|
76 | - $this->resolveTemplatePath($templateIdentifier); |
|
75 | + $cmsBlockTransfer->getCmsBlockTemplate()->getTemplatePath() : $this->resolveTemplatePath($templateIdentifier); |
|
77 | 76 | |
78 | 77 | $rendered .= $twig->render($templatePath, [ |
79 | 78 | 'placeholders' => $this->getPlaceholders($cmsBlockTransfer), |