@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | protected function addCommands(Container $container) |
53 | 53 | { |
54 | - $container->set(static::COMMANDS, function (Container $container) { |
|
54 | + $container->set(static::COMMANDS, function(Container $container) { |
|
55 | 55 | return $this->getConsoleCommands($container); |
56 | 56 | }); |
57 | 57 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | protected function addEventSubscriber(Container $container) |
77 | 77 | { |
78 | - $container->set(static::EVENT_SUBSCRIBER, function (Container $container) { |
|
78 | + $container->set(static::EVENT_SUBSCRIBER, function(Container $container) { |
|
79 | 79 | return $this->getEventSubscriber($container); |
80 | 80 | }); |
81 | 81 | |
@@ -99,11 +99,11 @@ discard block |
||
99 | 99 | */ |
100 | 100 | protected function addConsoleHookPlugins(Container $container) |
101 | 101 | { |
102 | - $container->set(static::PLUGINS_CONSOLE_PRE_RUN_HOOK, function (Container $container) { |
|
102 | + $container->set(static::PLUGINS_CONSOLE_PRE_RUN_HOOK, function(Container $container) { |
|
103 | 103 | return $this->getConsolePreRunHookPlugins($container); |
104 | 104 | }); |
105 | 105 | |
106 | - $container->set(static::PLUGINS_CONSOLE_POST_RUN_HOOK, function (Container $container) { |
|
106 | + $container->set(static::PLUGINS_CONSOLE_POST_RUN_HOOK, function(Container $container) { |
|
107 | 107 | return $this->getConsolePostRunHookPlugins($container); |
108 | 108 | }); |
109 | 109 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | */ |
138 | 138 | protected function addApplicationPlugins(Container $container): Container |
139 | 139 | { |
140 | - $container->set(static::PLUGINS_APPLICATION, function (Container $container) { |
|
140 | + $container->set(static::PLUGINS_APPLICATION, function(Container $container) { |
|
141 | 141 | return $this->getApplicationPlugins($container); |
142 | 142 | }); |
143 | 143 | |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | */ |
164 | 164 | protected function addServiceProviders(Container $container) |
165 | 165 | { |
166 | - $container->set(static::SERVICE_PROVIDERS, function (Container $container) { |
|
166 | + $container->set(static::SERVICE_PROVIDERS, function(Container $container) { |
|
167 | 167 | return $this->getServiceProviders($container); |
168 | 168 | }); |
169 | 169 |
@@ -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 | ]); |
@@ -131,7 +131,7 @@ |
||
131 | 131 | { |
132 | 132 | /** @var \Spryker\Zed\Development\DevelopmentConfig $developmentConfigMock */ |
133 | 133 | $developmentConfigMock = Stub::make(DevelopmentConfig::class, [ |
134 | - 'getOrganizationPathMap' => function () { |
|
134 | + 'getOrganizationPathMap' => function() { |
|
135 | 135 | return [ |
136 | 136 | 'Spryker' => Configuration::dataDir() . static::GENERATED_SCHEMA_FILES . DIRECTORY_SEPARATOR, |
137 | 137 | ]; |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | protected function addValidatorAdapter(Container $container): Container |
39 | 39 | { |
40 | - $container->set(static::CMS_SLOT_VALIDATOR, function () { |
|
40 | + $container->set(static::CMS_SLOT_VALIDATOR, function() { |
|
41 | 41 | return new CmsSlotToSymfonyValidatorAdapter(); |
42 | 42 | }); |
43 | 43 |
@@ -49,16 +49,16 @@ |
||
49 | 49 | protected function getDevelopmentFactory(array $composerDependency) |
50 | 50 | { |
51 | 51 | $developmentFactory = Stub::make(DevelopmentBusinessFactory::class, [ |
52 | - 'createModuleDependencyParser' => function () { |
|
52 | + 'createModuleDependencyParser' => function() { |
|
53 | 53 | return Stub::makeEmpty(ModuleDependencyParserInterface::class, [ |
54 | - 'parseOutgoingDependencies' => function () { |
|
54 | + 'parseOutgoingDependencies' => function() { |
|
55 | 55 | return new DependencyCollectionTransfer(); |
56 | 56 | }, |
57 | 57 | ]); |
58 | 58 | }, |
59 | - 'createComposerDependencyParser' => function () use ($composerDependency) { |
|
59 | + 'createComposerDependencyParser' => function() use ($composerDependency) { |
|
60 | 60 | return Stub::makeEmpty(ComposerDependencyParserInterface::class, [ |
61 | - 'getComposerDependencyComparison' => function () use ($composerDependency) { |
|
61 | + 'getComposerDependencyComparison' => function() use ($composerDependency) { |
|
62 | 62 | return [$composerDependency]; |
63 | 63 | }, |
64 | 64 | ]); |