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