Completed
Push — travis-trusty ( 8b4f84...3e4c76 )
by Kamil
22:02
created
src/Sylius/Component/Grid/Filter/DateFilter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         $from = isset($data['from']) ? $this->getDateTime($data['from']) : null;
36 36
         if (null !== $from) {
37
-            $inclusive = (bool)$this->getOption($options, 'inclusive_from', self::DEFAULT_INCLUSIVE_FROM);
37
+            $inclusive = (bool) $this->getOption($options, 'inclusive_from', self::DEFAULT_INCLUSIVE_FROM);
38 38
             if (true === $inclusive) {
39 39
                 $expressionBuilder->greaterThanOrEqual($field, $from);
40 40
             } else {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $to = isset($data['to']) ? $this->getDateTime($data['to']) : null;
46 46
         if (null !== $to) {
47
-            $inclusive = (bool)$this->getOption($options, 'inclusive_to', self::DEFAULT_INCLUSIVE_TO);
47
+            $inclusive = (bool) $this->getOption($options, 'inclusive_to', self::DEFAULT_INCLUSIVE_TO);
48 48
             if (true === $inclusive) {
49 49
                 $expressionBuilder->lessThanOrEqual($field, $to);
50 50
             } else {
@@ -81,6 +81,6 @@  discard block
 block discarded – undo
81 81
             return $data['date'];
82 82
         }
83 83
 
84
-        return $data['date'].' '.$data['time'];
84
+        return $data['date'] . ' ' . $data['time'];
85 85
     }
86 86
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Checkout/CheckoutStateUrlGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             throw new RouteNotFoundException();
71 71
         }
72 72
 
73
-        return $this->router->generate($this->routeCollection['empty_order']['route'], $parameters, $referenceType);    }
73
+        return $this->router->generate($this->routeCollection['empty_order']['route'], $parameters, $referenceType); }
74 74
 
75 75
     /**
76 76
      * {@inheritdoc}
Please login to merge, or discard this patch.
DependencyInjection/Compiler/RegisterPromotionActionsPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $promotionActionTypeToLabelMap = [];
36 36
         foreach ($container->findTaggedServiceIds('sylius.promotion_action') as $id => $attributes) {
37 37
             if (!isset($attributes[0]['type'], $attributes[0]['label'], $attributes[0]['form_type'])) {
38
-                throw new \InvalidArgumentException('Tagged promotion action `'.$id.'` needs to have `type`, `form_type` and `label` attributes.');
38
+                throw new \InvalidArgumentException('Tagged promotion action `' . $id . '` needs to have `type`, `form_type` and `label` attributes.');
39 39
             }
40 40
 
41 41
             $promotionActionTypeToLabelMap[$attributes[0]['type']] = $attributes[0]['label'];
Please login to merge, or discard this patch.
PromotionBundle/DependencyInjection/Compiler/RegisterRuleCheckersPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $promotionRuleCheckerTypeToLabelMap = [];
36 36
         foreach ($container->findTaggedServiceIds('sylius.promotion_rule_checker') as $id => $attributes) {
37 37
             if (!isset($attributes[0]['type'], $attributes[0]['label'], $attributes[0]['form_type'])) {
38
-                throw new \InvalidArgumentException('Tagged rule checker `'.$id.'` needs to have `type`, `form_type` and `label` attributes.');
38
+                throw new \InvalidArgumentException('Tagged rule checker `' . $id . '` needs to have `type`, `form_type` and `label` attributes.');
39 39
             }
40 40
 
41 41
             $promotionRuleCheckerTypeToLabelMap[$attributes[0]['type']] = $attributes[0]['label'];
Please login to merge, or discard this patch.
src/Sylius/Bundle/TaxonomyBundle/Doctrine/ORM/TaxonRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     {
92 92
         return $this->createTranslationBasedQueryBuilder($locale)
93 93
             ->andWhere('translation.name LIKE :name')
94
-            ->setParameter('name', '%'.$phrase.'%')
94
+            ->setParameter('name', '%' . $phrase . '%')
95 95
             ->getQuery()
96 96
             ->getResult()
97 97
         ;
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/ZoneType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
             ];
82 82
 
83 83
             if ($zone->getType() === ZoneInterface::TYPE_ZONE) {
84
-                $entryOptions['entry_options']['choice_filter'] = function(ZoneInterface $subZone) use ($zone){
84
+                $entryOptions['entry_options']['choice_filter'] = function (ZoneInterface $subZone) use ($zone){
85 85
                     return $zone->getId() !== $subZone->getId();
86 86
                 };
87 87
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/ZoneCodeChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             ->setDefaults([
56 56
                 'choice_filter' => null,
57 57
                 'choices' => function (Options $options) {
58
-                    $zones =  $this->zoneRepository->findAll();
58
+                    $zones = $this->zoneRepository->findAll();
59 59
                     if ($options['choice_filter']) {
60 60
                         $zones = array_filter($zones, $options['choice_filter']);
61 61
                     }
Please login to merge, or discard this patch.