protected function get_blacklisted_hosts() {
        global $CFG;
        if (!isset($CFG->curlsecurityblockedhosts)) {
            return [];
        }
        return array_filter(array_map('trim', explode("\n", $CFG->curlsecurityblockedhosts)), function($entry) {
            return !empty($entry);
        });
    }
protected function get_blacklisted_hosts() {
        global $CFG;
        if (!isset($CFG->curlsecurityblockedhosts)) {
            return [];
        }
        return array_filter(array_map('trim', explode("\n", $CFG->curlsecurityblockedhosts)), function($entry) {
            return !empty($entry);
        });
    }
protected function get_blacklisted_hosts ( ) { global $ CFG ; if ( ! isset ( $ CFG -> curlsecurityblockedhosts ) ) { return [ ] ; } return array_filter ( array_map ( 'trim' , explode ( "\n" , $ CFG -> curlsecurityblockedhosts ) ) , function ( $ entry ) { return ! empty ( $ entry ) ; } ) ; }
Helper that returns the blacklisted hosts, as defined in the 'curlsecurityblockedhosts' setting.

@return array the array of blacklisted host entries.
Helper that returns the blacklisted hosts as defined in the curlsecurityblockedhosts setting .