app/Http/Controllers/SearchController.php
private function otherFields(array $fields): array
    {
        $unused = array_diff(self::OTHER_ADVANCED_FIELDS, array_keys($fields));

        $other_fileds = [];

        foreach ($unused as $tag) {
            $other_fileds[$tag] = GedcomTag::getLabel($tag);
        }

        return $other_fileds;
    }
private function otherFields(array $fields): array
    {
        $unused = array_diff(self::OTHER_ADVANCED_FIELDS, array_keys($fields));

        $other_fileds = [];

        foreach ($unused as $tag) {
            $other_fileds[$tag] = GedcomTag::getLabel($tag);
        }

        return $other_fileds;
    }
private function otherFields ( array $ fields ) : array { $ unused = array_diff ( self :: OTHER_ADVANCED_FIELDS , array_keys ( $ fields ) ) ; $ other_fileds = [ ] ; foreach ( $ unused as $ tag ) { $ other_fileds [ $ tag ] = GedcomTag :: getLabel ( $ tag ) ; } return $ other_fileds ; }
Extra search fields to add to the advanced search

@param string[] $fields

@return string[]
Extra search fields to add to the advanced search