| Conditions | 3 |
| Paths | 3 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public static function convert(\PhpGedcom\Record\Caln &$caln, $level) |
||
| 26 | { |
||
| 27 | $output = ''; |
||
| 28 | $_caln = $caln->getCaln(); |
||
| 29 | if (empty($_caln)) { |
||
| 30 | return $output; |
||
| 31 | } else { |
||
| 32 | $output .= $level.' CALN '.$_caln."\n"; |
||
| 33 | } |
||
| 34 | |||
| 35 | // level up |
||
| 36 | $level++; |
||
| 37 | |||
| 38 | // medi |
||
| 39 | $medi = $caln->getMedi(); |
||
| 40 | if (!empty($medi)) { |
||
| 41 | $output .= $level.' MEDI '.$medi."\n"; |
||
| 42 | } |
||
| 43 | |||
| 44 | return $output; |
||
| 45 | } |
||
| 47 |