|
@@ -1,5 +1,5 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
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
|
|
Please login to merge, or discard this patch.