@@ -23,8 +23,8 @@ |
||
| 23 | 23 | |
| 24 | 24 | use _generated\TwigBusinessTesterActions; |
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Define custom actions here |
|
| 28 | - */ |
|
| 26 | + /** |
|
| 27 | + * Define custom actions here |
|
| 28 | + */ |
|
| 29 | 29 | |
| 30 | 30 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | protected function addZedRequestClient(Container $container) |
| 36 | 36 | { |
| 37 | - $container[static::CLIENT_ZED_REQUEST] = function (Container $container) { |
|
| 37 | + $container[static::CLIENT_ZED_REQUEST] = function(Container $container) { |
|
| 38 | 38 | return $container->getLocator()->zedRequest()->client(); |
| 39 | 39 | }; |
| 40 | 40 | |
@@ -26,15 +26,15 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function provideBusinessLayerDependencies(Container $container) |
| 28 | 28 | { |
| 29 | - $container[static::QUOTE_CALCULATOR_PLUGIN_STACK] = function (Container $container) { |
|
| 29 | + $container[static::QUOTE_CALCULATOR_PLUGIN_STACK] = function(Container $container) { |
|
| 30 | 30 | return $this->getQuoteCalculatorPluginStack($container); |
| 31 | 31 | }; |
| 32 | 32 | |
| 33 | - $container[static::ORDER_CALCULATOR_PLUGIN_STACK] = function (Container $container) { |
|
| 33 | + $container[static::ORDER_CALCULATOR_PLUGIN_STACK] = function(Container $container) { |
|
| 34 | 34 | return $this->getOrderCalculatorPluginStack($container); |
| 35 | 35 | }; |
| 36 | 36 | |
| 37 | - $container[static::SERVICE_UTIL_TEXT] = function (Container $container) { |
|
| 37 | + $container[static::SERVICE_UTIL_TEXT] = function(Container $container) { |
|
| 38 | 38 | return new CalculationToUtilTextBridge($container->getLocator()->utilText()->service()); |
| 39 | 39 | }; |
| 40 | 40 | |
@@ -597,7 +597,7 @@ |
||
| 597 | 597 | $calculationBusinessFactory = new CalculationBusinessFactory(); |
| 598 | 598 | |
| 599 | 599 | $container = new Container(); |
| 600 | - $container[CalculationDependencyProvider::QUOTE_CALCULATOR_PLUGIN_STACK] = function (Container $container) use ($calculatorPlugins) { |
|
| 600 | + $container[CalculationDependencyProvider::QUOTE_CALCULATOR_PLUGIN_STACK] = function(Container $container) use ($calculatorPlugins) { |
|
| 601 | 601 | return $calculatorPlugins; |
| 602 | 602 | }; |
| 603 | 603 | |
@@ -23,8 +23,8 @@ |
||
| 23 | 23 | |
| 24 | 24 | use _generated\CalculationBusinessTesterActions; |
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Define custom actions here |
|
| 28 | - */ |
|
| 26 | + /** |
|
| 27 | + * Define custom actions here |
|
| 28 | + */ |
|
| 29 | 29 | |
| 30 | 30 | } |
@@ -224,12 +224,14 @@ |
||
| 224 | 224 | foreach ($this->nestedBuilders as $builderInfo) { |
| 225 | 225 | list($name, $dependencyBuilder, $randomize) = $builderInfo; |
| 226 | 226 | |
| 227 | - if (!$randomize) { // add currently generated values |
|
| 227 | + if (!$randomize) { |
|
| 228 | +// add currently generated values |
|
| 228 | 229 | $dependencyBuilder->seed($this->seedData); |
| 229 | 230 | } |
| 230 | 231 | $nestedTransfer = $dependencyBuilder->build(); |
| 231 | 232 | |
| 232 | - if (!$randomize) { // reuse generated values from nested objects |
|
| 233 | + if (!$randomize) { |
|
| 234 | +// reuse generated values from nested objects |
|
| 233 | 235 | $this->seedData = array_merge($this->seedData, $dependencyBuilder->getSeedData()); |
| 234 | 236 | } |
| 235 | 237 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | protected function addFragmentControllerResolver() |
| 101 | 101 | { |
| 102 | 102 | $application = $this->application; |
| 103 | - $application['resolver'] = $application->share(function () use ($application) { |
|
| 103 | + $application['resolver'] = $application->share(function() use ($application) { |
|
| 104 | 104 | return new ZedFragmentControllerResolver($application); |
| 105 | 105 | }); |
| 106 | 106 | } |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | { |
| 179 | 179 | $application = $this->application; |
| 180 | 180 | $application['twig.global.variables'] = $application->share( |
| 181 | - $application->extend('twig.global.variables', function (array $variables) { |
|
| 181 | + $application->extend('twig.global.variables', function(array $variables) { |
|
| 182 | 182 | $variables += [ |
| 183 | 183 | 'environment' => APPLICATION_ENV, |
| 184 | 184 | 'store' => Store::getInstance()->getStoreName(), |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | { |
| 111 | 111 | $twigConfig = new TwigConfig(); |
| 112 | 112 | $twigBundleConfigMock = Stub::make(TwigConfig::class, [ |
| 113 | - 'getTemplatePaths' => function () use ($twigConfig) { |
|
| 113 | + 'getTemplatePaths' => function() use ($twigConfig) { |
|
| 114 | 114 | $paths = $twigConfig->getTemplatePaths(); |
| 115 | 115 | $paths[] = APPLICATION_VENDOR_DIR . '/spryker/spryker/Bundles/%2$s/src/*/Zed/%1$s/Presentation'; |
| 116 | 116 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | private function createClosure() |
| 69 | 69 | { |
| 70 | 70 | $dependencies = $this->getDependencies(); |
| 71 | - $callback = function (TestifyConfiguratorInterface $configurator) use ($dependencies) { |
|
| 71 | + $callback = function(TestifyConfiguratorInterface $configurator) use ($dependencies) { |
|
| 72 | 72 | foreach ($dependencies as $key => $value) { |
| 73 | 73 | $configurator->getContainer()->set($key, $value); |
| 74 | 74 | } |