Passed
Pull Request — master (#1242)
by Curtis
04:51
created
app/Person.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         'description',
25 25
         'title', 'name', 'appellative', 'uid', 'email', 'phone', 'birthday',
26 26
         'bank', 'bank_account', 'obs',
27
-        'uid','chan', 'rin', 'resn', 'rfn', 'afn'
27
+        'uid', 'chan', 'rin', 'resn', 'rfn', 'afn'
28 28
     ];
29 29
 
30 30
     public function events()
@@ -97,12 +97,12 @@  discard block
 block discarded – undo
97 97
         }
98 98
 
99 99
         // add birthyear to person table ( for form builder )
100
-        if($title == 'BIRT' && !empty($date)){
101
-            $this->birthday =  date('Y-m-d', strtotime($date));
100
+        if ($title == 'BIRT' && !empty($date)) {
101
+            $this->birthday = date('Y-m-d', strtotime($date));
102 102
         }
103 103
         // add deathyear to person table ( for form builder )
104
-        if($title == 'DEAT'  && !empty($date)){
105
-            $this->deathday =  date('Y-m-d', strtotime($date));
104
+        if ($title == 'DEAT' && !empty($date)) {
105
+            $this->deathday = date('Y-m-d', strtotime($date));
106 106
         }
107 107
         $this->save();
108 108
     }
Please login to merge, or discard this patch.