app/Http/Controllers/AdminController.php
private function tagsForPrivacy(Tree $tree): array
    {
        $tags = array_unique(array_merge(
            explode(',', $tree->getPreference('INDI_FACTS_ADD')),
            explode(',', $tree->getPreference('INDI_FACTS_UNIQUE')),
            explode(',', $tree->getPreference('FAM_FACTS_ADD')),
            explode(',', $tree->getPreference('FAM_FACTS_UNIQUE')),
            explode(',', $tree->getPreference('NOTE_FACTS_ADD')),
            explode(',', $tree->getPreference('NOTE_FACTS_UNIQUE')),
            explode(',', $tree->getPreference('SOUR_FACTS_ADD')),
            explode(',', $tree->getPreference('SOUR_FACTS_UNIQUE')),
            explode(',', $tree->getPreference('REPO_FACTS_ADD')),
            explode(',', $tree->getPreference('REPO_FACTS_UNIQUE')),
            [
                'SOUR',
                'REPO',
                'OBJE',
                '_PRIM',
                'NOTE',
                'SUBM',
                'SUBN',
                '_UID',
                'CHAN',
            ]
        ));

        $all_tags = [];

        foreach ($tags as $tag) {
            if ($tag) {
                $all_tags[$tag] = GedcomTag::getLabel($tag);
            }
        }

        uasort($all_tags, '\Fisharebest\Webtrees\I18N::strcasecmp');

        return array_merge(
            ['' => I18N::translate('All facts and events')],
            $all_tags
        );
    }
private function tagsForPrivacy(Tree $tree): array
    {
        $tags = array_unique(array_merge(
            explode(',', $tree->getPreference('INDI_FACTS_ADD')),
            explode(',', $tree->getPreference('INDI_FACTS_UNIQUE')),
            explode(',', $tree->getPreference('FAM_FACTS_ADD')),
            explode(',', $tree->getPreference('FAM_FACTS_UNIQUE')),
            explode(',', $tree->getPreference('NOTE_FACTS_ADD')),
            explode(',', $tree->getPreference('NOTE_FACTS_UNIQUE')),
            explode(',', $tree->getPreference('SOUR_FACTS_ADD')),
            explode(',', $tree->getPreference('SOUR_FACTS_UNIQUE')),
            explode(',', $tree->getPreference('REPO_FACTS_ADD')),
            explode(',', $tree->getPreference('REPO_FACTS_UNIQUE')),
            [
                'SOUR',
                'REPO',
                'OBJE',
                '_PRIM',
                'NOTE',
                'SUBM',
                'SUBN',
                '_UID',
                'CHAN',
            ]
        ));

        $all_tags = [];

        foreach ($tags as $tag) {
            if ($tag) {
                $all_tags[$tag] = GedcomTag::getLabel($tag);
            }
        }

        uasort($all_tags, '\Fisharebest\Webtrees\I18N::strcasecmp');

        return array_merge(
            ['' => I18N::translate('All facts and events')],
            $all_tags
        );
    }
private function tagsForPrivacy ( Tree $ tree ) : array { $ tags = array_unique ( array_merge ( explode ( ',' , $ tree -> getPreference ( 'INDI_FACTS_ADD' ) ) , explode ( ',' , $ tree -> getPreference ( 'INDI_FACTS_UNIQUE' ) ) , explode ( ',' , $ tree -> getPreference ( 'FAM_FACTS_ADD' ) ) , explode ( ',' , $ tree -> getPreference ( 'FAM_FACTS_UNIQUE' ) ) , explode ( ',' , $ tree -> getPreference ( 'NOTE_FACTS_ADD' ) ) , explode ( ',' , $ tree -> getPreference ( 'NOTE_FACTS_UNIQUE' ) ) , explode ( ',' , $ tree -> getPreference ( 'SOUR_FACTS_ADD' ) ) , explode ( ',' , $ tree -> getPreference ( 'SOUR_FACTS_UNIQUE' ) ) , explode ( ',' , $ tree -> getPreference ( 'REPO_FACTS_ADD' ) ) , explode ( ',' , $ tree -> getPreference ( 'REPO_FACTS_UNIQUE' ) ) , [ 'SOUR' , 'REPO' , 'OBJE' , '_PRIM' , 'NOTE' , 'SUBM' , 'SUBN' , '_UID' , 'CHAN' , ] ) ) ; $ all_tags = [ ] ; foreach ( $ tags as $ tag ) { if ( $ tag ) { $ all_tags [ $ tag ] = GedcomTag :: getLabel ( $ tag ) ; } } uasort ( $ all_tags , '\Fisharebest\Webtrees\I18N::strcasecmp' ) ; return array_merge ( [ '' => I18N :: translate ( 'All facts and events' ) ] , $ all_tags ) ; }
Generate a list of potential problems with the server.

@param Tree $tree

@return string[]
Generate a list of potential problems with the server .