@@ -92,7 +92,7 @@ |
||
| 92 | 92 | public function setPurchaseCountry($purchaseCountry) |
| 93 | 93 | { |
| 94 | 94 | $upperPurchaseCountry = strtoupper($purchaseCountry); |
| 95 | - if (in_array($upperPurchaseCountry, array('IT','ES','PT','FR'))) { |
|
| 95 | + if (in_array($upperPurchaseCountry, array('IT', 'ES', 'PT', 'FR'))) { |
|
| 96 | 96 | $this->purchaseCountry = $upperPurchaseCountry; |
| 97 | 97 | } else { |
| 98 | 98 | $this->purchaseCountry = null; |
@@ -147,11 +147,11 @@ |
||
| 147 | 147 | $dateTime = new \DateTime(trim($dateOfBirth)); |
| 148 | 148 | $today = new \DateTime('today'); |
| 149 | 149 | if ($dateTime >= $today) { |
| 150 | - $this->dateOfBirth = null; |
|
| 150 | + $this->dateOfBirth = null; |
|
| 151 | 151 | } |
| 152 | - $this->dateOfBirth = $dateTime->format('Y-m-d'); |
|
| 152 | + $this->dateOfBirth = $dateTime->format('Y-m-d'); |
|
| 153 | 153 | } catch (\Exception $exception) { |
| 154 | - $this->dateOfBirth = null; |
|
| 154 | + $this->dateOfBirth = null; |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | return $this; |