Test Failed
Pull Request — master (#4)
by Ayesh
13:01
created
src/Parser.php 1 patch
Braces   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -85,13 +85,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
   }
Please login to merge, or discard this patch.