@@ -37,7 +37,7 @@ |
||
37 | 37 | public function provide(ContainerInterface $container): ContainerInterface |
38 | 38 | { |
39 | 39 | $container->set(static::BC_FEATURE_FLAG_TWIG_TRANSLATOR, false); |
40 | - $container->set(static::SERVICE_TRANSLATOR, function () { |
|
40 | + $container->set(static::SERVICE_TRANSLATOR, function() { |
|
41 | 41 | return $this->getFactory()->createTranslator(); |
42 | 42 | }); |
43 | 43 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | public function provide(ContainerInterface $container): ContainerInterface |
39 | 39 | { |
40 | 40 | $container->set(static::BC_FEATURE_FLAG_TWIG_TRANSLATOR, false); |
41 | - $container->set(static::SERVICE_TRANSLATOR, function () { |
|
41 | + $container->set(static::SERVICE_TRANSLATOR, function() { |
|
42 | 42 | return $this->getFactory()->getTranslatorPlugin(); |
43 | 43 | }); |
44 | 44 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | */ |
46 | 46 | protected function getEnvironmentVariableValueByNameFunction(): TwigFunction |
47 | 47 | { |
48 | - return new TwigFunction(static::FUNCTION_NAME_GET_ENV, function (string $which) { |
|
48 | + return new TwigFunction(static::FUNCTION_NAME_GET_ENV, function(string $which) { |
|
49 | 49 | return $this->getEnvironmentVariableValueByName($which); |
50 | 50 | }); |
51 | 51 | } |
@@ -103,7 +103,7 @@ |
||
103 | 103 | ], |
104 | 104 | ])->get(static::FIELD_CMS_BLOCKS . '_' . $idTemplate . '_' . $idCmsBlockCategoryPosition)->addEventListener( |
105 | 105 | FormEvents::PRE_SUBMIT, |
106 | - function (FormEvent $event) { |
|
106 | + function(FormEvent $event) { |
|
107 | 107 | if (!$event->getData()) { |
108 | 108 | return; |
109 | 109 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function register(Application $app) |
31 | 31 | { |
32 | - $app->extend('form.extensions', function ($extensions) use ($app) { |
|
32 | + $app->extend('form.extensions', function($extensions) use ($app) { |
|
33 | 33 | $extensions[] = $this->createDoubleSubmitProtectionExtension($app); |
34 | 34 | |
35 | 35 | return $extensions; |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $finder = clone $this->finder; |
39 | 39 | $finder->in($directoryPath) |
40 | 40 | ->depth(0) |
41 | - ->filter(function (SplFileInfo $fileEntry) { |
|
41 | + ->filter(function(SplFileInfo $fileEntry) { |
|
42 | 42 | return $this->filterTransferFileEntry($fileEntry); |
43 | 43 | }); |
44 | 44 |
@@ -61,13 +61,13 @@ |
||
61 | 61 | protected function getConfigMock(string $relativeSourceDirectory, ?array $excludedTables = []) |
62 | 62 | { |
63 | 63 | $configMock = Stub::make(IndexGeneratorConfig::class, [ |
64 | - 'getExcludedTables' => function () use ($excludedTables) { |
|
64 | + 'getExcludedTables' => function() use ($excludedTables) { |
|
65 | 65 | return $excludedTables; |
66 | 66 | }, |
67 | - 'getTargetDirectory' => function () { |
|
67 | + 'getTargetDirectory' => function() { |
|
68 | 68 | return $this->getTargetDirectory(); |
69 | 69 | }, |
70 | - 'getPathToMergedSchemas' => function () use ($relativeSourceDirectory) { |
|
70 | + 'getPathToMergedSchemas' => function() use ($relativeSourceDirectory) { |
|
71 | 71 | return Configuration::dataDir() . $relativeSourceDirectory; |
72 | 72 | }, |
73 | 73 | ]); |
@@ -82,7 +82,7 @@ |
||
82 | 82 | $keys = array_slice($this->storageClient->getKeys($this->getSearchTerm()), 0, $this->defaultPageLength); |
83 | 83 | } |
84 | 84 | |
85 | - $keys = array_map(function (string $key) { |
|
85 | + $keys = array_map(function(string $key) { |
|
86 | 86 | return str_replace(static::KV_PREFIX, '', $key); |
87 | 87 | }, $keys); |
88 | 88 |
@@ -90,7 +90,7 @@ |
||
90 | 90 | public function persistProductAbstractPriceCollection( |
91 | 91 | ProductAbstractTransfer $productAbstractTransfer |
92 | 92 | ): ProductAbstractTransfer { |
93 | - return $this->handleDatabaseTransaction(function () use ($productAbstractTransfer) { |
|
93 | + return $this->handleDatabaseTransaction(function() use ($productAbstractTransfer) { |
|
94 | 94 | return $this->executePersistProductAbstractPriceCollectionTransaction($productAbstractTransfer); |
95 | 95 | }); |
96 | 96 | } |