liberu-genealogy / php-gedcom

Gedcom reading and writing for PHP 8.3
https://www.liberu.co.uk
MIT License
74 stars 40 forks source link

Refactor ParserTest.php to Improve Modularity #19

Closed sweep-ai[bot] closed 4 months ago

sweep-ai[bot] commented 4 months ago

PR Feedback (click)

The common code between these two methods involved iterating over individuals parsed from a GEDCOM file, checking if they have names, and then formatting these names into a specific string format. This operation has been extracted into a new private method named generateOutputFromParsedGedcom.

Summary of Changes

This refactoring makes the ParserTest.php file cleaner and more maintainable, and ensures our codebase adheres to good coding standards.

sweep-ai[bot] commented 4 months ago

Rollback Files For Sweep