| Conditions | 3 |
| Paths | 3 |
| Total Lines | 21 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public static function convert(\PhpGedcom\Record\Head\Char &$char, $level) |
||
| 29 | { |
||
| 30 | $output =""; |
||
| 31 | // char |
||
| 32 | $_char = $char->getChar(); |
||
|
|
|||
| 33 | if($_char){ |
||
| 34 | $output.=$level." CHAR ".$_char."\n"; |
||
| 35 | }else{ |
||
| 36 | return $output; |
||
| 37 | } |
||
| 38 | |||
| 39 | // level up |
||
| 40 | $level++; |
||
| 41 | // VERS |
||
| 42 | $vers = $char->getVersion(); |
||
| 43 | if($vers){ |
||
| 44 | $output.=$level." VERS ".$vers."\n"; |
||
| 45 | } |
||
| 46 | |||
| 47 | |||
| 48 | return $output; |
||
| 49 | } |
||
| 51 |