Skip to content

Commit

Permalink
Fixing an error within the metod get_birthday(). Thank you, @veskoto .
Browse files Browse the repository at this point in the history
  • Loading branch information
ivantcholakov committed Aug 22, 2022
1 parent 00e382c commit 58e604a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Egn.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ public static function get_gender($string) {

public static function get_birthday($string) {

if (self::is_foreigner($string)) {
return null;
}

if (!self::valid($string)) {
return null;
}
Expand All @@ -372,6 +368,10 @@ public static function is_foreigner($string) {
return false;
}

if (self::valid($string)) {
return false;
}

if (strlen($string) == 10) {

$pnf_weights = array(21, 19, 17, 13, 11, 9, 7, 3, 1);
Expand Down

0 comments on commit 58e604a

Please sign in to comment.