@@ -31,19 +31,19 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function provideBusinessLayerDependencies(Container $container) |
33 | 33 | { |
34 | - $container[static::SERVICE_DATA_READER] = function (Container $container) { |
|
34 | + $container[static::SERVICE_DATA_READER] = function(Container $container) { |
|
35 | 35 | return $container->getLocator()->utilDataReader()->service(); |
36 | 36 | }; |
37 | 37 | |
38 | - $container[static::FACADE_COLLECTOR] = function (Container $container) { |
|
38 | + $container[static::FACADE_COLLECTOR] = function(Container $container) { |
|
39 | 39 | return new CmsCollectorToCollectorBridge($container->getLocator()->collector()->facade()); |
40 | 40 | }; |
41 | 41 | |
42 | - $container[static::FACADE_SEARCH] = function (Container $container) { |
|
42 | + $container[static::FACADE_SEARCH] = function(Container $container) { |
|
43 | 43 | return new CmsCollectorToSearchBridge($container->getLocator()->search()->facade()); |
44 | 44 | }; |
45 | 45 | |
46 | - $container[static::QUERY_CONTAINER_TOUCH] = function (Container $container) { |
|
46 | + $container[static::QUERY_CONTAINER_TOUCH] = function(Container $container) { |
|
47 | 47 | return $container->getLocator()->touch()->queryContainer(); |
48 | 48 | }; |
49 | 49 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | protected function addCmsFacade(Container $container) |
61 | 61 | { |
62 | - $container[static::FACADE_CMS] = function (Container $container) { |
|
62 | + $container[static::FACADE_CMS] = function(Container $container) { |
|
63 | 63 | return new CmsCollectorToCmsBridge($container->getLocator()->cms()->facade()); |
64 | 64 | }; |
65 | 65 |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | */ |
50 | 50 | protected function addConfigProfilerCollector(Application $app) |
51 | 51 | { |
52 | - $app->extend('data_collectors', function ($collectors) { |
|
53 | - $collectors[ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER] = function () { |
|
52 | + $app->extend('data_collectors', function($collectors) { |
|
53 | + $collectors[ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER] = function() { |
|
54 | 54 | return ConfigProfilerCollectorFactory::createConfigProfilerCollector(); |
55 | 55 | }; |
56 | 56 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | protected function addCollectorTemplates(Application $app) |
69 | 69 | { |
70 | - $app['data_collector.templates'] = $app->extend('data_collector.templates', function ($templates) { |
|
70 | + $app['data_collector.templates'] = $app->extend('data_collector.templates', function($templates) { |
|
71 | 71 | $templates[] = [ConfigProfilerCollector::SPRYKER_CONFIG_PROFILER, $this->getTemplateName()]; |
72 | 72 | |
73 | 73 | return $templates; |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | protected function addPathToLoader(Application $app) |
123 | 123 | { |
124 | 124 | $loaderKey = $this->getLoaderKey(); |
125 | - $app[$loaderKey] = $app->extend($loaderKey, function (TwigFilesystemLoader $loader) { |
|
125 | + $app[$loaderKey] = $app->extend($loaderKey, function(TwigFilesystemLoader $loader) { |
|
126 | 126 | $pathToTemplates = $this->getPathToTemplates(); |
127 | 127 | if (method_exists($loader, 'addPath')) { |
128 | 128 | $loader->addPath($pathToTemplates); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | ->addValidFromField($builder) |
88 | 88 | ->addValidToField($builder); |
89 | 89 | |
90 | - $builder->addEventListener(FormEvents::SUBMIT, function (FormEvent $event) { |
|
90 | + $builder->addEventListener(FormEvents::SUBMIT, function(FormEvent $event) { |
|
91 | 91 | $this->unsetLocalizedUrls($event, $event->getData()); |
92 | 92 | }); |
93 | 93 | } |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | protected function createValidFromRangeConstraint() |
208 | 208 | { |
209 | 209 | return new Callback([ |
210 | - 'callback' => function ($dateTimeFrom, ExecutionContext $context) { |
|
210 | + 'callback' => function($dateTimeFrom, ExecutionContext $context) { |
|
211 | 211 | $dateTimeTo = $context->getRoot()->getData()->getValidTo(); |
212 | 212 | if (empty($dateTimeFrom) || empty($dateTimeTo)) { |
213 | 213 | return; |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | protected function createValidToFieldRangeConstraint() |
227 | 227 | { |
228 | 228 | return new Callback([ |
229 | - 'callback' => function ($dateTimeTo, ExecutionContext $context) { |
|
229 | + 'callback' => function($dateTimeTo, ExecutionContext $context) { |
|
230 | 230 | $dateTimeFrom = $context->getRoot()->getData()->getValidFrom(); |
231 | 231 | if (empty($dateTimeFrom) || empty($dateTimeTo)) { |
232 | 232 | return; |
@@ -245,12 +245,12 @@ discard block |
||
245 | 245 | protected function createDateTimeModelTransformer() |
246 | 246 | { |
247 | 247 | return new CallbackTransformer( |
248 | - function ($value) { |
|
248 | + function($value) { |
|
249 | 249 | if ($value !== null) { |
250 | 250 | return new DateTime($value); |
251 | 251 | } |
252 | 252 | }, |
253 | - function ($value) { |
|
253 | + function($value) { |
|
254 | 254 | return $value; |
255 | 255 | } |
256 | 256 | ); |
@@ -70,7 +70,7 @@ |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | $app->before( |
73 | - function (Request $request) { |
|
73 | + function(Request $request) { |
|
74 | 74 | if ($this->shouldBeSsl($request)) { |
75 | 75 | $fakeRequest = clone $request; |
76 | 76 | $fakeRequest->server->set('HTTPS', true); |
@@ -173,7 +173,8 @@ |
||
173 | 173 | continue; |
174 | 174 | } |
175 | 175 | |
176 | - if (array_values($arrayElement) !== $arrayElement) { // isAssociativeArray |
|
176 | + if (array_values($arrayElement) !== $arrayElement) { |
|
177 | +// isAssociativeArray |
|
177 | 178 | /** @var \Spryker\Shared\Kernel\Transfer\TransferInterface $transferObject */ |
178 | 179 | $transferObject = new $elementType(); |
179 | 180 | $transferObject->fromArray($arrayElement, $ignoreMissingProperty); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $resolver->setRequired(static::OPTION_AMOUNT_PER_STORE); |
63 | 63 | |
64 | 64 | $resolver->setDefaults([ |
65 | - static::OPTION_AMOUNT_PER_STORE => true, |
|
65 | + static::OPTION_AMOUNT_PER_STORE => true, |
|
66 | 66 | ]); |
67 | 67 | |
68 | 68 | parent::configureOptions($resolver); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | |
43 | 43 | $builder->addEventListener( |
44 | 44 | FormEvents::PRE_SET_DATA, |
45 | - function (FormEvent $event) use ($options) { |
|
45 | + function(FormEvent $event) use ($options) { |
|
46 | 46 | $this->setInitialMoneyValueData($event, $options); |
47 | 47 | } |
48 | 48 | ); |
@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | $builder->addEventListener( |
56 | 56 | FormEvents::PRE_SET_DATA, |
57 | - function (FormEvent $event) use ($validationGroups) { |
|
57 | + function(FormEvent $event) use ($validationGroups) { |
|
58 | 58 | $moneyCurrencyOptions = $this->getFactory() |
59 | 59 | ->createMoneyDataProvider() |
60 | 60 | ->getMoneyCurrencyOptionsFor($event->getData()); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | use _generated\CmsPersistenceTesterActions; |
22 | 22 | |
23 | - /** |
|
24 | - * Define custom actions here |
|
25 | - */ |
|
23 | + /** |
|
24 | + * Define custom actions here |
|
25 | + */ |
|
26 | 26 | } |
@@ -14,9 +14,9 @@ discard block |
||
14 | 14 | class DecisionRuleContext implements DecisionRuleSpecificationInterface |
15 | 15 | { |
16 | 16 | |
17 | - /** |
|
18 | - * @var \Spryker\Zed\Discount\Dependency\Plugin\DecisionRulePluginInterface |
|
19 | - */ |
|
17 | + /** |
|
18 | + * @var \Spryker\Zed\Discount\Dependency\Plugin\DecisionRulePluginInterface |
|
19 | + */ |
|
20 | 20 | protected $rulePlugin; |
21 | 21 | |
22 | 22 | /** |
@@ -24,31 +24,31 @@ discard block |
||
24 | 24 | */ |
25 | 25 | protected $clauseTransfer; |
26 | 26 | |
27 | - /** |
|
28 | - * @param \Spryker\Zed\Discount\Dependency\Plugin\DecisionRulePluginInterface $rulePlugin |
|
29 | - * @param \Generated\Shared\Transfer\ClauseTransfer $clauseTransfer |
|
30 | - */ |
|
27 | + /** |
|
28 | + * @param \Spryker\Zed\Discount\Dependency\Plugin\DecisionRulePluginInterface $rulePlugin |
|
29 | + * @param \Generated\Shared\Transfer\ClauseTransfer $clauseTransfer |
|
30 | + */ |
|
31 | 31 | public function __construct(DecisionRulePluginInterface $rulePlugin, ClauseTransfer $clauseTransfer) |
32 | 32 | { |
33 | 33 | $this->rulePlugin = $rulePlugin; |
34 | 34 | $this->clauseTransfer = $clauseTransfer; |
35 | 35 | } |
36 | 36 | |
37 | - /** |
|
38 | - * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
|
39 | - * @param \Generated\Shared\Transfer\ItemTransfer $itemTransfer |
|
40 | - * |
|
41 | - * @return bool |
|
42 | - */ |
|
37 | + /** |
|
38 | + * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer |
|
39 | + * @param \Generated\Shared\Transfer\ItemTransfer $itemTransfer |
|
40 | + * |
|
41 | + * @return bool |
|
42 | + */ |
|
43 | 43 | public function isSatisfiedBy(QuoteTransfer $quoteTransfer, ItemTransfer $itemTransfer) |
44 | 44 | { |
45 | 45 | $this->setAcceptedDataTypes(); |
46 | 46 | return $this->rulePlugin->isSatisfiedBy($quoteTransfer, $itemTransfer, $this->clauseTransfer); |
47 | 47 | } |
48 | 48 | |
49 | - /** |
|
50 | - * @return void |
|
51 | - */ |
|
49 | + /** |
|
50 | + * @return void |
|
51 | + */ |
|
52 | 52 | protected function setAcceptedDataTypes() |
53 | 53 | { |
54 | 54 | $this->clauseTransfer->setAcceptedTypes($this->rulePlugin->acceptedDataTypes()); |