Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public static function convert(\PhpGedcom\Record\Refn &$refn, $level) |
||
26 | { |
||
27 | $output = ''; |
||
28 | $_refn = $refn->getRefn(); |
||
29 | if (empty($_refn)) { |
||
30 | return $output; |
||
31 | } else { |
||
32 | $output .= $level.' REFN '.$_refn."\n"; |
||
33 | } |
||
34 | // level up |
||
35 | $level++; |
||
36 | // DATE |
||
37 | $type = $refn->getType(); |
||
38 | if (!empty($type)) { |
||
39 | $output .= $level.' TYPE '.$type."\n"; |
||
40 | } |
||
41 | |||
42 | return $output; |
||
43 | } |
||
45 |