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