@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | |
193 | 193 | if ($channel = $this->channelContext->getChannel()) { |
194 | 194 | $channelFilter = new \Elastica\Filter\Terms(); |
195 | - $channelFilter->setTerms('channels', array((string)$channel)); |
|
195 | + $channelFilter->setTerms('channels', array((string) $channel)); |
|
196 | 196 | $boolFilter->addMust($channelFilter); |
197 | 197 | $elasticaQuery->setFilter($boolFilter); |
198 | 198 | } |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | |
236 | 236 | if ($channel = $this->channelContext->getChannel()) { |
237 | 237 | $channelFilter = new \Elastica\Filter\Terms(); |
238 | - $channelFilter->setTerms('channels', array((string)$channel)); |
|
238 | + $channelFilter->setTerms('channels', array((string) $channel)); |
|
239 | 239 | $boolFilter->addMust($channelFilter); |
240 | 240 | $elasticaQuery->setPostFilter($boolFilter); |
241 | 241 | } |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | ${$name.'Aggregation'}->setField($name); |
366 | 366 | ${$name.'Aggregation'}->setSize(550); |
367 | 367 | |
368 | - ${$name.'AggregationFilter'}->addAggregation(${$name . 'Aggregation'}); |
|
368 | + ${$name.'AggregationFilter'}->addAggregation(${$name.'Aggregation'}); |
|
369 | 369 | } // range facet creation |
370 | 370 | elseif ('range' === $facet['type']) { |
371 | 371 | ${$name.'AggregationFilter'} = new \Elastica\Aggregation\Filter($name); |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | ->addRange($value['from'], $value['to']); |
378 | 378 | } |
379 | 379 | |
380 | - ${$name.'AggregationFilter'}->addAggregation(${$name . 'Aggregation'}); |
|
380 | + ${$name.'AggregationFilter'}->addAggregation(${$name.'Aggregation'}); |
|
381 | 381 | } |
382 | 382 | |
383 | 383 | $aggregations[$name]['aggregation'] = ${$name.'Aggregation'}; |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | $aggregations[$name]['aggregation_filter']->setFilter($boolFilter); |
427 | 427 | } elseif ($name != key($value)) { |
428 | 428 | if (isset(${key($value).'BoolFilter'})) { |
429 | - $aggregations[$name]['aggregation_filter']->setFilter(${key($value) . 'BoolFilter'}); |
|
429 | + $aggregations[$name]['aggregation_filter']->setFilter(${key($value).'BoolFilter'}); |
|
430 | 430 | } |
431 | 431 | } |
432 | 432 | } |
@@ -462,7 +462,7 @@ discard block |
||
462 | 462 | $boolFilter->addShould($rangeFilters); |
463 | 463 | } |
464 | 464 | } else { |
465 | - $termFilters = new \Elastica\Filter\Terms(); |
|
465 | + $termFilters = new \Elastica\Filter\Terms(); |
|
466 | 466 | $termFilters->setTerms($name, $value); |
467 | 467 | $boolFilter->addShould($termFilters); |
468 | 468 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | ->getQuery() |
70 | 70 | ; |
71 | 71 | |
72 | - $result = $this->waitFor(function () use ($query) { |
|
72 | + $result = $this->waitFor(function() use ($query) { |
|
73 | 73 | return $query->getResult(); |
74 | 74 | }); |
75 | 75 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | ; |
99 | 99 | |
100 | 100 | try { |
101 | - $this->waitFor(function () use ($query) { |
|
101 | + $this->waitFor(function() use ($query) { |
|
102 | 102 | return 0 === count($query->getResult()) ? true : false; |
103 | 103 | }); |
104 | 104 | } catch (\RuntimeException $exception) { |
@@ -52,10 +52,10 @@ |
||
52 | 52 | ->end() |
53 | 53 | ->end() |
54 | 54 | ->validate() |
55 | - ->ifTrue(function ($array) { |
|
55 | + ->ifTrue(function($array) { |
|
56 | 56 | return !isset($array['operator']); |
57 | 57 | }) |
58 | - ->then(function ($array) { |
|
58 | + ->then(function($array) { |
|
59 | 59 | $array['operator'] = 'sylius.inventory_operator.'.($array['track_inventory'] ? 'default' : 'noop'); |
60 | 60 | |
61 | 61 | return $array; |
@@ -44,7 +44,7 @@ |
||
44 | 44 | ->add('variant', 'sylius_entity_to_identifier', array( |
45 | 45 | 'label' => 'sylius.form.action.add_product_configuration.variant', |
46 | 46 | 'class' => $this->variantRepository->getClassName(), |
47 | - 'query_builder' => function () { |
|
47 | + 'query_builder' => function() { |
|
48 | 48 | return $this->variantRepository->getFormQueryBuilder(); |
49 | 49 | }, |
50 | 50 | 'constraints' => array( |
@@ -50,7 +50,7 @@ |
||
50 | 50 | { |
51 | 51 | $builder->addEventListener( |
52 | 52 | FormEvents::PRE_SET_DATA, |
53 | - function (FormEvent $event) { |
|
53 | + function(FormEvent $event) { |
|
54 | 54 | // Adding dynamically created isoName field |
55 | 55 | $nameOptions = array( |
56 | 56 | 'label' => 'sylius.form.country.name', |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | parent::configureOptions($resolver); |
34 | 34 | |
35 | - $choiceList = function (Options $options) { |
|
35 | + $choiceList = function(Options $options) { |
|
36 | 36 | if (isset($options['subject'])) { |
37 | 37 | $methods = $this->resolver->getSupportedMethods($options['subject'], $options['criteria']); |
38 | 38 | } else { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | if ($options['channel']) { |
43 | 43 | $filteredMethods = array(); |
44 | - foreach($methods as $method) { |
|
44 | + foreach ($methods as $method) { |
|
45 | 45 | if ($options['channel']->hasShippingMethod($method)) { |
46 | 46 | $filteredMethods[] = $method; |
47 | 47 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | parent::buildForm($builder, $options); |
34 | 34 | |
35 | 35 | $builder |
36 | - ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($options) { |
|
36 | + ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($options) { |
|
37 | 37 | $data = $event->getData(); |
38 | 38 | if (isset($data['variant'])) { |
39 | 39 | $event->getForm()->add('variant', 'entity_hidden', array( |
@@ -48,7 +48,7 @@ |
||
48 | 48 | { |
49 | 49 | $builder->addEventListener( |
50 | 50 | FormEvents::PRE_SET_DATA, |
51 | - function (FormEvent $event) { |
|
51 | + function(FormEvent $event) { |
|
52 | 52 | // Adding dynamically created code field |
53 | 53 | $nameOptions = array( |
54 | 54 | 'label' => 'sylius.form.locale.name', |
@@ -47,8 +47,8 @@ |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
50 | - * {@inheritdoc} |
|
51 | - */ |
|
50 | + * {@inheritdoc} |
|
51 | + */ |
|
52 | 52 | public function getName() |
53 | 53 | { |
54 | 54 | return 'sylius_data_fetcher_number_of_orders'; |