|
@@ -119,7 +119,7 @@ discard block |
|
|
block discarded – undo |
|
119
|
119
|
/** @var \DateTime $startDateTime */ |
|
120
|
120
|
$startDateTime = $configuration['timePeriod']['start']; |
|
121
|
121
|
/** @var \DateTime $endDateTime */ |
|
122
|
|
- $endDateTime = $configuration['timePeriod']['end']?:new \DateTime(); |
|
|
122
|
+ $endDateTime = $configuration['timePeriod']['end'] ?: new \DateTime(); |
|
123
|
123
|
|
|
124
|
124
|
$this->qb |
|
125
|
125
|
->addSelect($groupByParts[0]) |
|
@@ -212,7 +212,7 @@ discard block |
|
|
block discarded – undo |
|
212
|
212
|
$type = 'user'.ucfirst($addressType).'Province'; |
|
213
|
213
|
|
|
214
|
214
|
if (isset($configuration[$type]) && count($configuration[$type]) > 0) { |
|
215
|
|
- $provinces = $configuration[$type]->map(function (AddressInterface $address) { |
|
|
215
|
+ $provinces = $configuration[$type]->map(function(AddressInterface $address) { |
|
216
|
216
|
return $address->getProvinceCode() ?: $address->getProvinceName(); |
|
217
|
217
|
})->toArray(); |
|
218
|
218
|
$rootAlias = $cAlias = $this->qb->getRootAliases()[0]; |
|
@@ -241,7 +241,7 @@ discard block |
|
|
block discarded – undo |
|
241
|
241
|
$type = 'user'.ucfirst($addressType).'City'; |
|
242
|
242
|
|
|
243
|
243
|
if (isset($configuration[$type]) && count($configuration[$type]) > 0) { |
|
244
|
|
- $cities = $configuration[$type]->map(function (AddressInterface $address) { |
|
|
244
|
+ $cities = $configuration[$type]->map(function(AddressInterface $address) { |
|
245
|
245
|
return $address->getCity(); |
|
246
|
246
|
})->toArray(); |
|
247
|
247
|
$rootAlias = $cAlias = $this->qb->getRootAliases()[0]; |
|
@@ -267,7 +267,7 @@ discard block |
|
|
block discarded – undo |
|
267
|
267
|
$type = 'user'.ucfirst($addressType).'Postcode'; |
|
268
|
268
|
|
|
269
|
269
|
if (isset($configuration[$type]) && count($configuration[$type]) > 0) { |
|
270
|
|
- $codes = $configuration[$type]->map(function (AddressInterface $address) { |
|
|
270
|
+ $codes = $configuration[$type]->map(function(AddressInterface $address) { |
|
271
|
271
|
return $address->getPostcode(); |
|
272
|
272
|
})->toArray(); |
|
273
|
273
|
$rootAlias = $cAlias = $this->qb->getRootAliases()[0]; |
|
@@ -330,7 +330,7 @@ discard block |
|
|
block discarded – undo |
|
330
|
330
|
public function addOrderNumbers(array $configuration = [], string $field = 'o.id'): void |
|
331
|
331
|
{ |
|
332
|
332
|
if (isset($configuration['orderNumbers']) && count($configuration['orderNumbers']) > 0) { |
|
333
|
|
- $orderIds = $configuration['orderNumbers']->map(function (OrderInterface $order) { |
|
|
333
|
+ $orderIds = $configuration['orderNumbers']->map(function(OrderInterface $order) { |
|
334
|
334
|
return $order->getId(); |
|
335
|
335
|
})->toArray(); |
|
336
|
336
|
|