@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | /** @var DateTime $startDateTime */ |
130 | 130 | $startDateTime = $configuration['timePeriod']['start']; |
131 | 131 | /** @var DateTime $endDateTime */ |
132 | - $endDateTime = $configuration['timePeriod']['end']?:new DateTime(); |
|
132 | + $endDateTime = $configuration['timePeriod']['end'] ?: new DateTime(); |
|
133 | 133 | |
134 | 134 | $this->qb |
135 | 135 | ->addSelect($groupByParts[0]) |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | $type = 'user'.ucfirst($addressType).'Province'; |
234 | 234 | |
235 | 235 | if (isset($configuration[$type]) && count($configuration[$type]) > 0) { |
236 | - $provinces = $configuration[$type]->map(function (AddressInterface $address) { |
|
236 | + $provinces = $configuration[$type]->map(function(AddressInterface $address) { |
|
237 | 237 | return $address->getProvinceCode() ?: $address->getProvinceName(); |
238 | 238 | })->toArray(); |
239 | 239 | |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | $type = 'user'.ucfirst($addressType).'City'; |
267 | 267 | |
268 | 268 | if (isset($configuration[$type]) && count($configuration[$type]) > 0) { |
269 | - $cities = $configuration[$type]->map(function (AddressInterface $address) { |
|
269 | + $cities = $configuration[$type]->map(function(AddressInterface $address) { |
|
270 | 270 | return $address->getCity(); |
271 | 271 | })->toArray(); |
272 | 272 | |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | $type = 'user'.ucfirst($addressType).'Postcode'; |
297 | 297 | |
298 | 298 | if (isset($configuration[$type]) && count($configuration[$type]) > 0) { |
299 | - $codes = $configuration[$type]->map(function (AddressInterface $address) { |
|
299 | + $codes = $configuration[$type]->map(function(AddressInterface $address) { |
|
300 | 300 | return $address->getPostcode(); |
301 | 301 | })->toArray(); |
302 | 302 | |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | public function addProduct(array $configuration = [], string $field = 'p.id'): void |
324 | 324 | { |
325 | 325 | if (isset($configuration['product']) && count($configuration['product']) > 0) { |
326 | - $products = $configuration['product']->map(function (ProductInterface $product) { |
|
326 | + $products = $configuration['product']->map(function(ProductInterface $product) { |
|
327 | 327 | return $product->getId(); |
328 | 328 | })->toArray(); |
329 | 329 |