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