@@ -85,13 +85,13 @@ discard block |
||
85 | 85 | if ($birth_days_since > 500) { |
86 | 86 | $birth_days_since -= 500; |
87 | 87 | $this->data_components['gender'] = 'F'; |
88 | - } |
|
89 | - else { |
|
88 | + } else { |
|
90 | 89 | $this->data_components['gender'] = 'M'; |
91 | 90 | } |
92 | 91 | |
93 | - if (date('L', mktime(0, 0, 0, 1, 1, $year)) === "1") |
|
94 | - --$birth_days_since; |
|
92 | + if (date('L', mktime(0, 0, 0, 1, 1, $year)) === "1") { |
|
93 | + --$birth_days_since; |
|
94 | + } |
|
95 | 95 | } else { |
96 | 96 | $birth_days_since -= 2; |
97 | 97 | } |
@@ -107,8 +107,7 @@ discard block |
||
107 | 107 | $strlen = strlen((string) $id_number); |
108 | 108 | if ($strlen === 12) { |
109 | 109 | $this->data_components['format'] = static::ID_FORMAT_2016; |
110 | - } |
|
111 | - else { |
|
110 | + } else { |
|
112 | 111 | $this->data_components['format'] = static::ID_FORMAT_PRE_2016; |
113 | 112 | } |
114 | 113 | } |