@@ -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} |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | "channel": "CHANNEL", |
| 48 | 48 | "localeCode": "en_US" |
| 49 | 49 | } |
| 50 | -EOT; |
|
| 50 | +eot; |
|
| 51 | 51 | |
| 52 | 52 | $this->client->request('POST', '/api/v1/carts/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 53 | 53 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | "variant": "MUG_SW", |
| 72 | 72 | "quantity": 1 |
| 73 | 73 | } |
| 74 | -EOT; |
|
| 74 | +eot; |
|
| 75 | 75 | |
| 76 | 76 | $this->client->request('POST', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
| 77 | 77 | $this->assertResponseCode($this->client->getResponse(), Response::HTTP_CREATED); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | }, |
| 106 | 106 | "differentBillingAddress": true |
| 107 | 107 | } |
| 108 | -EOT; |
|
| 108 | +eot; |
|
| 109 | 109 | |
| 110 | 110 | $url = sprintf('/api/v1/checkouts/addressing/%d', $cartId); |
| 111 | 111 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | } |
| 134 | 134 | ] |
| 135 | 135 | } |
| 136 | -EOT; |
|
| 136 | +eot; |
|
| 137 | 137 | |
| 138 | 138 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
| 139 | 139 | $this->assertResponseCode($this->client->getResponse(), Response::HTTP_NO_CONTENT); |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | } |
| 161 | 161 | ] |
| 162 | 162 | } |
| 163 | -EOT; |
|
| 163 | +eot; |
|
| 164 | 164 | |
| 165 | 165 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
| 166 | 166 | $this->assertResponseCode($this->client->getResponse(), Response::HTTP_NO_CONTENT); |
@@ -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']; |