| Conditions | 8 |
| Paths | 5 |
| Total Lines | 31 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public static function convert(\Gedcom\Record\RepoRef &$reporef, $level) |
||
| 25 | { |
||
| 26 | $output = ''; |
||
| 27 | $_repo = $reporef->getRepo(); |
||
|
|
|||
| 28 | if (empty($_sour)) { |
||
| 29 | return $output; |
||
| 30 | } else { |
||
| 31 | $output .= $level.' REPO '.$_repo."\n"; |
||
| 32 | } |
||
| 33 | // level up |
||
| 34 | $level++; |
||
| 35 | |||
| 36 | // Note array |
||
| 37 | $note = $reporef->getNote(); |
||
| 38 | if (!empty($note) && count($note) > 0) { |
||
| 39 | foreach ($note as $item) { |
||
| 40 | $_convert = \Gedcom\Writer\NoteRef::convert($item, $level); |
||
| 41 | $output .= $_convert; |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | // _caln array |
||
| 46 | $_caln = $reporef->getCaln(); |
||
| 47 | if (!empty($_caln) && count($_caln) > 0) { |
||
| 48 | foreach ($_caln as $item) { |
||
| 49 | $_convert = \Gedcom\Writer\Caln::convert($item, $level); |
||
| 50 | $output .= $_convert; |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | return $output; |
||
| 55 | } |
||
| 57 |