| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public static function convert(\PhpGedcom\Record\Head\Date &$date, $level) |
||
| 27 | { |
||
| 28 | $output = ''; |
||
| 29 | $_date = $date->getDate(); |
||
|
|
|||
| 30 | if ($_date) { |
||
| 31 | $output .= $level.' DATE '.$_date."\n"; |
||
| 32 | } else { |
||
| 33 | return $output; |
||
| 34 | } |
||
| 35 | |||
| 36 | // level up |
||
| 37 | $level++; |
||
| 38 | // Time |
||
| 39 | $time = $date->getTime(); |
||
| 40 | if ($time) { |
||
| 41 | $output .= $level.' TIME '.$time."\n"; |
||
| 42 | } |
||
| 43 | |||
| 44 | return $output; |
||
| 45 | } |
||
| 47 |