@@ -145,7 +145,7 @@ |
||
145 | 145 | 'translation.name LIKE :phrase', |
146 | 146 | 'o.code LIKE :phrase' |
147 | 147 | )) |
148 | - ->setParameter('phrase', '%'.$phrase.'%') |
|
148 | + ->setParameter('phrase', '%' . $phrase . '%') |
|
149 | 149 | ->setParameter('locale', $locale) |
150 | 150 | ->setParameter('productCode', $productCode) |
151 | 151 | ->getQuery() |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | */ |
157 | 157 | public function iSetItsPriceTo($price = null, $channelName = null) |
158 | 158 | { |
159 | - $this->createPage->specifyPrice($price, (null === $channelName) ? $this->sharedStorage->get('channel') :$channelName); |
|
159 | + $this->createPage->specifyPrice($price, (null === $channelName) ? $this->sharedStorage->get('channel') : $channelName); |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | /** |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | */ |
520 | 520 | public function theVariantWithCodeShouldNotHaveShippingRequired(ProductVariantInterface $productVariant) |
521 | 521 | { |
522 | - $this->updatePage->open(['productId' => $productVariant->getProduct()->getId(),'id' => $productVariant->getId()]); |
|
522 | + $this->updatePage->open(['productId' => $productVariant->getProduct()->getId(), 'id' => $productVariant->getId()]); |
|
523 | 523 | |
524 | 524 | Assert::false($this->updatePage->isShippingRequired()); |
525 | 525 | } |
@@ -99,6 +99,6 @@ |
||
99 | 99 | { |
100 | 100 | $basename = preg_replace('/Plugin$/', '', $this->getName()); |
101 | 101 | |
102 | - return $this->getNamespace().'\\DependencyInjection\\'.$basename.'Extension'; |
|
102 | + return $this->getNamespace() . '\\DependencyInjection\\' . $basename . 'Extension'; |
|
103 | 103 | } |
104 | 104 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function load(array $config, ContainerBuilder $container) |
28 | 28 | { |
29 | 29 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
30 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
30 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
31 | 31 | |
32 | 32 | $container->setParameter('sylius.admin.notification.enabled', $config['notifications']['enabled']); |
33 | 33 | $container->setParameter('sylius.admin.notification.frequency', $config['notifications']['frequency']); |
@@ -62,10 +62,10 @@ |
||
62 | 62 | public function getMatchers() |
63 | 63 | { |
64 | 64 | return [ |
65 | - 'haveLength' => function($subject, $length) { |
|
65 | + 'haveLength' => function ($subject, $length) { |
|
66 | 66 | return $length === strlen($subject); |
67 | 67 | }, |
68 | - 'beInRange' => function($subject, $min, $max) { |
|
68 | + 'beInRange' => function ($subject, $min, $max) { |
|
69 | 69 | return $subject >= $min && $subject <= $max; |
70 | 70 | } |
71 | 71 | ]; |
@@ -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']; |