This PR reverts the changes made to the convert method in Writer.php and ensures that any future refactoring follows the guideline of breaking large functions into smaller, more modular functions.
Summary of Changes
Reverted the changes made to the convert method in Writer.php.
Removed the added parameter $format and changed the return type back to string.
Updated the method to perform the necessary conversions based on the properties of the Gedcom object.
Ensured that any future refactoring follows the guideline of breaking large functions into smaller, more modular functions.
PR Feedback (click)
I created this PR to address this rule:
"Refactor large functions to be more modular."
Description
This PR reverts the changes made to the
convert
method inWriter.php
and ensures that any future refactoring follows the guideline of breaking large functions into smaller, more modular functions.Summary of Changes
convert
method inWriter.php
.$format
and changed the return type back tostring
.Gedcom
object.Please review and merge this PR. Thank you!