@@ -81,8 +81,7 @@ discard block |
||
81 | 81 | if ($birth_days_since > 500) { |
82 | 82 | $birth_days_since -= 500; |
83 | 83 | $this->data_components['gender'] = 'F'; |
84 | - } |
|
85 | - else { |
|
84 | + } else { |
|
86 | 85 | $this->data_components['gender'] = 'M'; |
87 | 86 | } |
88 | 87 | |
@@ -99,8 +98,7 @@ discard block |
||
99 | 98 | $strlen = strlen((string) $id_number); |
100 | 99 | if ($strlen === 12) { |
101 | 100 | $this->data_components['format'] = static::ID_FORMAT_2016; |
102 | - } |
|
103 | - else { |
|
101 | + } else { |
|
104 | 102 | $this->data_components['format'] = static::ID_FORMAT_PRE_2016; |
105 | 103 | } |
106 | 104 | } |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | try { |
13 | 13 | $parser = new Parser($id_number); |
14 | -} |
|
15 | -catch (InvalidArgumentException $exception) { |
|
14 | +} catch (InvalidArgumentException $exception) { |
|
16 | 15 | echo $exception->getMessage(); // "Birthday indicator is invalid." |
17 | 16 | } |