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