@@ -34,7 +34,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -70,7 +70,7 @@ |
||
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} |
@@ -35,7 +35,7 @@ |
||
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']; |
@@ -35,7 +35,7 @@ |
||
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']; |
@@ -91,7 +91,7 @@ |
||
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 | ; |
@@ -81,7 +81,7 @@ |
||
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 | } |
@@ -55,7 +55,7 @@ |
||
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 | } |