@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $countryName = $country !== null ? $country->getName() : $address->getCountryCode(); |
| 63 | 63 | |
| 64 | 64 | $postcodeLabel = $address->getPostcode().', '.$countryName; |
| 65 | - $isNew = count(array_filter($addresses, function ($address) use ($postcodeLabel) { |
|
| 65 | + $isNew = count(array_filter($addresses, function($address) use ($postcodeLabel) { |
|
| 66 | 66 | return $address['postcode'] === $postcodeLabel; |
| 67 | 67 | })) === 0; |
| 68 | 68 | |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | |
| 70 | 70 | $provinceName = $this->getProvinceName($address); |
| 71 | 71 | $provinceLabel = ucfirst(strtolower($provinceName)).', '.$countryName; |
| 72 | - $isNew = count(array_filter($addresses, function ($address) use ($provinceLabel) { |
|
| 72 | + $isNew = count(array_filter($addresses, function($address) use ($provinceLabel) { |
|
| 73 | 73 | return $address['province'] === $provinceLabel; |
| 74 | 74 | })) === 0; |
| 75 | 75 | |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $countryName = $country !== null ? $country->getName() : $address->getCountryCode(); |
| 63 | 63 | |
| 64 | 64 | $cityLabel = ucfirst(strtolower($address->getCity())).', '.$countryName; |
| 65 | - $isNew = count(array_filter($addresses, function ($address) use ($cityLabel) { |
|
| 65 | + $isNew = count(array_filter($addresses, function($address) use ($cityLabel) { |
|
| 66 | 66 | return $address['city'] === $cityLabel; |
| 67 | 67 | })) === 0; |
| 68 | 68 | |