@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $labels = []; |
| 96 | 96 | foreach ($labelsAux as $label) { |
| 97 | 97 | if (!in_array($label, ['MonthDate', 'YearDate', 'DateDate'], true)) { |
| 98 | - $labels[] = preg_replace('/(?!^)[A-Z]{2,}(?=[A-Z][a-z])|[A-Z][a-z]/', ' $0', (string)$label); |
|
| 98 | + $labels[] = preg_replace('/(?!^)[A-Z]{2,}(?=[A-Z][a-z])|[A-Z][a-z]/', ' $0', (string) $label); |
|
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | $data->setLabels($labels); |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $countryName = $country !== null ? $country->getName() : $address->getCountryCode(); |
| 61 | 61 | |
| 62 | 62 | $cityLabel = ucfirst(strtolower($address->getCity() ?? '')).', '.$countryName; |
| 63 | - $isNew = count(array_filter($addresses, function ($address) use ($cityLabel): bool { |
|
| 63 | + $isNew = count(array_filter($addresses, function($address) use ($cityLabel): bool { |
|
| 64 | 64 | return $address['city'] === $cityLabel; |
| 65 | 65 | })) === 0; |
| 66 | 66 | |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | /** @var ProductInterface $product */ |
| 55 | 55 | foreach ($searchProducts as $product) { |
| 56 | 56 | $productLabel = ucfirst(strtolower($product->getName() ?? '')); |
| 57 | - $isNew = count(array_filter($products, function ($product) use ($productLabel): bool { |
|
| 57 | + $isNew = count(array_filter($products, function($product) use ($productLabel): bool { |
|
| 58 | 58 | return $product['name'] === $productLabel; |
| 59 | 59 | })) === 0; |
| 60 | 60 | |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | |
| 67 | 67 | $provinceName = $this->getProvinceName($address); |
| 68 | 68 | $provinceLabel = ucfirst(strtolower($provinceName ?? '')).', '.$countryName; |
| 69 | - $isNew = count(array_filter($addresses, function ($address) use ($provinceLabel): bool { |
|
| 69 | + $isNew = count(array_filter($addresses, function($address) use ($provinceLabel): bool { |
|
| 70 | 70 | return $address['province'] === $provinceLabel; |
| 71 | 71 | })) === 0; |
| 72 | 72 | |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $countryName = $country !== null ? $country->getName() : $address->getCountryCode(); |
| 61 | 61 | |
| 62 | 62 | $postcodeLabel = $address->getPostcode().', '.$countryName; |
| 63 | - $isNew = count(array_filter($addresses, function ($address) use ($postcodeLabel): bool { |
|
| 63 | + $isNew = count(array_filter($addresses, function($address) use ($postcodeLabel): bool { |
|
| 64 | 64 | return $address['postcode'] === $postcodeLabel; |
| 65 | 65 | })) === 0; |
| 66 | 66 | |