@@ -24,7 +24,7 @@ discard block |
||
| 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 |
||
| 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 | } |