app/Services/DataFixService.php
Method gedcomDiff
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function gedcomDiff(Tree $tree, string $old_gedcom, string $new_gedcom): string
{
$old_lines = explode("\n", $old_gedcom);
$new_lines = explode("\n", $new_gedcom);
$algorithm = new MyersDiff();
Avoid too many return
statements within this method. Open
Open
return Registry::submitterFactory()->make($xref, $tree);
Avoid too many return
statements within this method. Open
Open
return Registry::sourceFactory()->make($xref, $tree);
Avoid too many return
statements within this method. Open
Open
return Registry::gedcomRecordFactory()->make($xref, $tree);
Avoid too many return
statements within this method. Open
Open
return Registry::repositoryFactory()->make($xref, $tree);