| @@ -56,7 +56,7 @@ | ||
| 56 | 56 | /** @var ProductInterface $product */ | 
| 57 | 57 |          foreach ($searchProducts as $product) { | 
| 58 | 58 | $productLabel = ucfirst(strtolower($product->getName())); | 
| 59 | -            $isNew = count(array_filter($products, function ($product) use ($productLabel) { | |
| 59 | +            $isNew = count(array_filter($products, function($product) use ($productLabel) { | |
| 60 | 60 | return $product['name'] === $productLabel; | 
| 61 | 61 | })) === 0; | 
| 62 | 62 | |
| @@ -119,7 +119,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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]; | 
| @@ -291,7 +291,7 @@ discard block | ||
| 291 | 291 | public function addProduct(array $configuration = [], string $field = 'p.id'): void | 
| 292 | 292 |      { | 
| 293 | 293 |          if (isset($configuration['product']) && count($configuration['product']) > 0) { | 
| 294 | -            $products = $configuration['product']->map(function (ProductInterface $product) { | |
| 294 | +            $products = $configuration['product']->map(function(ProductInterface $product) { | |
| 295 | 295 | return $product->getId(); | 
| 296 | 296 | })->toArray(); | 
| 297 | 297 | |