@@ -347,7 +347,7 @@ |
||
| 347 | 347 | public function setBirthDate($birthDate) |
| 348 | 348 | { |
| 349 | 349 | |
| 350 | - if($birthDate instanceof \DateTime){ |
|
| 350 | + if ($birthDate instanceof \DateTime) { |
|
| 351 | 351 | $birthDate = $birthDate->format('Y-m-d'); |
| 352 | 352 | |
| 353 | 353 | } |
@@ -89,10 +89,10 @@ discard block |
||
| 89 | 89 | * @param stdClass|null $data |
| 90 | 90 | * @return \DateTime|null |
| 91 | 91 | */ |
| 92 | - protected function getIfSetDate($key, stdClass $data = null){ |
|
| 92 | + protected function getIfSetDate($key, stdClass $data = null) { |
|
| 93 | 93 | |
| 94 | 94 | $val = $this->getIfSet($key, $data); |
| 95 | - if(!empty($val)){ |
|
| 95 | + if (!empty($val)) { |
|
| 96 | 96 | return \DateTime::createFromFormat('Y-m-d', $val); |
| 97 | 97 | } |
| 98 | 98 | return null; |
@@ -106,9 +106,9 @@ discard block |
||
| 106 | 106 | * @return \DateTime|null |
| 107 | 107 | */ |
| 108 | 108 | |
| 109 | - protected function getIfSetDateTime($key, stdClass $data = null){ |
|
| 109 | + protected function getIfSetDateTime($key, stdClass $data = null) { |
|
| 110 | 110 | $val = $this->getIfSet($key, $data); |
| 111 | - if(!empty($val)){ |
|
| 111 | + if (!empty($val)) { |
|
| 112 | 112 | return \DateTime::createFromFormat(\DateTime::ATOM, $val); |
| 113 | 113 | } |
| 114 | 114 | return null; |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | { |
| 199 | 199 | $keys = ['first', 'second', 'third']; |
| 200 | 200 | |
| 201 | - if($expirationDate instanceof \DateTime){ |
|
| 201 | + if ($expirationDate instanceof \DateTime) { |
|
| 202 | 202 | $expirationDate = $expirationDate->format('Y-m-d'); |
| 203 | 203 | |
| 204 | 204 | } |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | public function setOnlineBankDebit($bankNumber, $expirationDate, $returnUri) |
| 300 | 300 | { |
| 301 | 301 | |
| 302 | - if($expirationDate instanceof \DateTime){ |
|
| 302 | + if ($expirationDate instanceof \DateTime) { |
|
| 303 | 303 | $expirationDate = $expirationDate->format('Y-m-d'); |
| 304 | 304 | |
| 305 | 305 | } |