protected function containsBlacklistedWord(array $list, string $content) : bool
    {
        if (!$this->isCaseSensitive) {
            $content = strtolower($content);
            $list    = array_map('strtolower', $list);
        }
        foreach ($list as $term) {
            if (strpos($content, $term) !== false) {
                $this->hint .= PHP_EOL . 'Invalid use of \'' . $term . '\'';
                return true;
            }
        }
        return false;
    }
protected function containsBlacklistedWord(array $list, string $content) : bool
    {
        if (!$this->isCaseSensitive) {
            $content = strtolower($content);
            $list    = array_map('strtolower', $list);
        }
        foreach ($list as $term) {
            if (strpos($content, $term) !== false) {
                $this->hint .= PHP_EOL . 'Invalid use of \'' . $term . '\'';
                return true;
            }
        }
        return false;
    }
protected function containsBlacklistedWord ( array $ list , string $ content ) : bool { if ( ! $ this -> isCaseSensitive ) { $ content = strtolower ( $ content ) ; $ list = array_map ( 'strtolower' , $ list ) ; } foreach ( $ list as $ term ) { if ( strpos ( $ content , $ term ) !== false ) { $ this -> hint .= PHP_EOL . 'Invalid use of \'' . $ term . '\'' ; return true ; } } return false ; }
Contains blacklisted word

@param  array  $list
@param  string $content
@return bool
Contains blacklisted word