Completed
Push — theme-bundle ( ccadad...4f3506 )
by Kamil
47:50 queued 30:17
created
src/Sylius/Bundle/SearchBundle/Indexer/OrmIndexer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -241,10 +241,10 @@
 block discarded – undo
241 241
         // TODO maybe I can use the property accessor here
242 242
         $content = '';
243 243
         foreach (array_keys(array_slice($fields, 1)) as $field) {
244
-            $func = 'get' . ucfirst($field);
244
+            $func = 'get'.ucfirst($field);
245 245
             
246 246
             if (method_exists($element, $func)) {
247
-               $content .= $element->$func() . self::SPACER;
247
+               $content .= $element->$func().self::SPACER;
248 248
             }
249 249
         }
250 250
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/SearchBundle/spec/Indexer/OrmIndexerSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     )
28 28
     {
29 29
         $this->beConstructedWith(
30
-            (Array)$config,
30
+            (Array) $config,
31 31
             $transformer
32 32
         );
33 33
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/SearchBundle/spec/Finder/OrmFinderSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         $this->beConstructedWith(
40 40
             $searchRepository,
41
-            (array)$config,
41
+            (array) $config,
42 42
             $productRepository,
43 43
             $entityManager,
44 44
             $queryLogger,
Please login to merge, or discard this patch.
src/Sylius/Bundle/SearchBundle/Finder/OrmFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
         foreach ($this->query($query->getSearchTerm(), $this->em) as $modelClass => $modelIdsToTags) {
141 141
             $modelIds = array_keys($modelIdsToTags);
142 142
 
143
-            if(isset($modelIdsForChannel[$modelClass])) {
143
+            if (isset($modelIdsForChannel[$modelClass])) {
144 144
                 $modelIds = array_intersect($modelIds, $modelIdsForChannel[$modelClass]);
145 145
             }
146 146
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/SearchBundle/Finder/ElasticsearchFinder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/SearchBundle/Behat/SearchContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Sylius/Bundle/InventoryBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Sylius/Bundle/CoreBundle/Form/Type/Shipping/ShippingMethodChoiceType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/OrderItemType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.