Conditions | 5 |
Paths | 4 |
Total Lines | 21 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public static function convert(\PhpGedcom\Record\NoteRef &$note, $level) |
||
26 | { |
||
27 | $output = ''; |
||
28 | |||
29 | // $_note |
||
30 | $_note = $note->getNote(); |
||
|
|||
31 | if (!empty($_note)) { |
||
32 | $output .= $level.' NOTE '.$_note."\n"; |
||
33 | } |
||
34 | |||
35 | $level++; |
||
36 | // $sour |
||
37 | $sour = $note->getSour(); |
||
38 | if ($sour && count($sour) > 0) { |
||
39 | foreach ($sour as $item) { |
||
40 | $_convert = \PhpGedcom\Writer\SourRef::convert($item, $level); |
||
41 | $output .= $_convert; |
||
42 | } |
||
43 | } |
||
44 | |||
45 | return $output; |
||
46 | } |
||
48 |