src/JCrowe/BadWordFilter/BadWordFilter.php
private function getBadWordsFromArray()
    {
        if (!empty($this->config['bad_words_array']) && is_array($this->config['bad_words_array'])) {
            return $this->config['bad_words_array'];
        }

        throw new \Exception('Source is set to "array" but bad_words_array is either empty or not an array.');
    }
private function getBadWordsFromArray()
    {
        if (!empty($this->config['bad_words_array']) && is_array($this->config['bad_words_array'])) {
            return $this->config['bad_words_array'];
        }

        throw new \Exception('Source is set to "array" but bad_words_array is either empty or not an array.');
    }
private function getBadWordsFromArray ( ) { if ( ! empty ( $ this -> config [ 'bad_words_array' ] ) && is_array ( $ this -> config [ 'bad_words_array' ] ) ) { return $ this -> config [ 'bad_words_array' ] ; } throw new \ Exception ( 'Source is set to "array" but bad_words_array is either empty or not an array.' ) ; }
Get the bad words from the array in the config

@return array
@throws \Exception
Get the bad words from the array in the config