app/Http/Controllers/MessageController.php
private function validContacts(Tree $tree): array
    {
        $contacts = [
            $this->user_service->find((int) $tree->getPreference('CONTACT_USER_ID')),
            $this->user_service->find((int) $tree->getPreference('WEBMASTER_USER_ID')),
        ];

        return array_filter($contacts);
    }
private function validContacts(Tree $tree): array
    {
        $contacts = [
            $this->user_service->find((int) $tree->getPreference('CONTACT_USER_ID')),
            $this->user_service->find((int) $tree->getPreference('WEBMASTER_USER_ID')),
        ];

        return array_filter($contacts);
    }
private function validContacts ( Tree $ tree ) : array { $ contacts = [ $ this -> user_service -> find ( ( int ) $ tree -> getPreference ( 'CONTACT_USER_ID' ) ) , $ this -> user_service -> find ( ( int ) $ tree -> getPreference ( 'WEBMASTER_USER_ID' ) ) , ] ; return array_filter ( $ contacts ) ; }
Contact messages can only be sent to the designated contacts

@param Tree $tree

@return UserInterface[]
Contact messages can only be sent to the designated contacts