app/Functions/Functions.php
public static function getCloseRelationshipName(Individual $individual1, Individual $individual2): string
    {
        if ($individual1 === $individual2) {
            return self::reflexivePronoun($individual1);
        }

        try {
            $relationship = self::getRelationship($individual1, $individual2);

            return self::getRelationshipName($relationship);
        } catch (Exception $ex) {
            return '';
        }
    }
public static function getCloseRelationshipName(Individual $individual1, Individual $individual2): string
    {
        if ($individual1 === $individual2) {
            return self::reflexivePronoun($individual1);
        }

        try {
            $relationship = self::getRelationship($individual1, $individual2);

            return self::getRelationshipName($relationship);
        } catch (Exception $ex) {
            return '';
        }
    }
public static function getCloseRelationshipName ( Individual $ individual1 , Individual $ individual2 ) : string { if ( $ individual1 === $ individual2 ) { return self :: reflexivePronoun ( $ individual1 ) ; } try { $ relationship = self :: getRelationship ( $ individual1 , $ individual2 ) ; return self :: getRelationshipName ( $ relationship ) ; } catch ( Exception $ ex ) { return '' ; } }
For close family relationships, such as the families tab and the family navigator
Display a tick if both individuals are the same.

@param Individual $individual1
@param Individual $individual2

@return string
For close family relationships such as the families tab and the family navigator Display a tick if both individuals are the same .