@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace SLWDC\NICParser; |
5 | 5 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | throw new InvalidIdentityCardNumberException('Birth year is out ff 1900-2100 range', 200); |
88 | 88 | } |
89 | 89 | |
90 | - $birthday = new \DateTime();mktime(0, 0, 0, 0, 0, $year); |
|
90 | + $birthday = new \DateTime(); mktime(0, 0, 0, 0, 0, $year); |
|
91 | 91 | $birthday->setDate($year, 1, 1)->setTime(0, 0, 0); |
92 | 92 | $birth_days_since = (int) substr($full_number, 4, 3); |
93 | 93 |
@@ -94,8 +94,7 @@ |
||
94 | 94 | if ($birth_days_since > 500) { |
95 | 95 | $birth_days_since -= 500; |
96 | 96 | $this->data_components['gender'] = 'F'; |
97 | - } |
|
98 | - else { |
|
97 | + } else { |
|
99 | 98 | $this->data_components['gender'] = 'M'; |
100 | 99 | } |
101 | 100 |