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