app/Module/PedigreeMapModule.php
private function getSosaName(int $sosa): string
    {
        $path = '';

        while ($sosa > 1) {
            if ($sosa % 2 === 1) {
                $path = 'mot' . $path;
            } else {
                $path = 'fat' . $path;
            }
            $sosa = intdiv($sosa, 2);
        }

        return Functions::getRelationshipNameFromPath($path);
    }
private function getSosaName(int $sosa): string
    {
        $path = '';

        while ($sosa > 1) {
            if ($sosa % 2 === 1) {
                $path = 'mot' . $path;
            } else {
                $path = 'fat' . $path;
            }
            $sosa = intdiv($sosa, 2);
        }

        return Functions::getRelationshipNameFromPath($path);
    }
private function getSosaName ( int $ sosa ) : string { $ path = '' ; while ( $ sosa > 1 ) { if ( $ sosa % 2 === 1 ) { $ path = 'mot' . $ path ; } else { $ path = 'fat' . $ path ; } $ sosa = intdiv ( $ sosa , 2 ) ; } return Functions :: getRelationshipNameFromPath ( $ path ) ; }
builds and returns sosa relationship name in the active language

@param int $sosa Sosa number

@return string
builds and returns sosa relationship name in the active language