app/Services/GedcomService.php
public function readSex(string $text): string
    {
        $text = strtoupper($text);

        if ($text !== self::SEX_MALE && $text !== self::SEX_FEMALE) {
            $text = self::SEX_UNKNOWN;
        }

        return $text;
    }
public function readSex(string $text): string
    {
        $text = strtoupper($text);

        if ($text !== self::SEX_MALE && $text !== self::SEX_FEMALE) {
            $text = self::SEX_UNKNOWN;
        }

        return $text;
    }
public function readSex ( string $ text ) : string { $ text = strtoupper ( $ text ) ; if ( $ text !== self :: SEX_MALE && $ text !== self :: SEX_FEMALE ) { $ text = self :: SEX_UNKNOWN ; } return $ text ; }
Some applications use non-standard values for unknown.

@param string $text

@return string
Some applications use non - standard values for unknown .