@@ -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 | if ($groupByParts[0] && $groupByParts[1]) { |
135 | 135 | $this->qb |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | ->setParameter('from', $startDateTime->format('Y-m-d H:i:s')) |
140 | 140 | ->setParameter('to', $endDateTime->format('Y-m-d H:i:s')) |
141 | 141 | ->groupBy($groupByParts[1]) |
142 | - ->orderBy('date,' . $groupByParts[1]) |
|
142 | + ->orderBy('date,'.$groupByParts[1]) |
|
143 | 143 | ; |
144 | 144 | } else { |
145 | 145 | $this->qb |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | $type = 'user'.ucfirst($addressType).'Province'; |
246 | 246 | |
247 | 247 | if (isset($configuration[$type]) && count($configuration[$type]) > 0) { |
248 | - $provinces = $configuration[$type]->map(function (AddressInterface $address) { |
|
248 | + $provinces = $configuration[$type]->map(function(AddressInterface $address) { |
|
249 | 249 | return $address->getProvinceCode() ?: $address->getProvinceName(); |
250 | 250 | })->toArray(); |
251 | 251 | |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | $type = 'user'.ucfirst($addressType).'City'; |
280 | 280 | |
281 | 281 | if (isset($configuration[$type]) && count($configuration[$type]) > 0) { |
282 | - $cities = $configuration[$type]->map(function (AddressInterface $address) { |
|
282 | + $cities = $configuration[$type]->map(function(AddressInterface $address) { |
|
283 | 283 | return $address->getCity(); |
284 | 284 | })->toArray(); |
285 | 285 | |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | $type = 'user'.ucfirst($addressType).'Postcode'; |
311 | 311 | |
312 | 312 | if (isset($configuration[$type]) && count($configuration[$type]) > 0) { |
313 | - $codes = $configuration[$type]->map(function (AddressInterface $address) { |
|
313 | + $codes = $configuration[$type]->map(function(AddressInterface $address) { |
|
314 | 314 | return $address->getPostcode(); |
315 | 315 | })->toArray(); |
316 | 316 | |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | public function addProduct(array $configuration = [], string $field = 'p.id'): void |
339 | 339 | { |
340 | 340 | if (isset($configuration['product']) && count($configuration['product']) > 0) { |
341 | - $products = $configuration['product']->map(function (ProductInterface $product) { |
|
341 | + $products = $configuration['product']->map(function(ProductInterface $product) { |
|
342 | 342 | return $product->getId(); |
343 | 343 | })->toArray(); |
344 | 344 |