Jyxo\SpamFilter::isSpam PHP Метод

isSpam() публичный Метод

Checks if the given text is spam.
public isSpam ( string $text ) : boolean
$text string Checked text
Результат boolean
    public function isSpam(string $text) : bool
    {
        // Blacklisting first
        if ($this->isBlack($text)) {
            return true;
        }
        // Link count check
        if ($this->isLinkSpam($text)) {
            return true;
        }
        // Words repeat check
        if ($this->isBabble($text)) {
            return true;
        }
        return false;
    }