Advertisement
Guest User

Untitled

a guest
Jan 11th, 2021
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1.             foreach($wrongTexts as $wrongText) {
  2.                 $wrongTextLen = mb_strlen($wrongText);
  3.                 if($wrongTextLen > 500) {
  4.                     $wrongTextLen = 500;
  5.                 }
  6.                 if($this->text->similar($message, $wrongText, array('maxSymbols' => $wrongTextLen, 'lower' => true, 'toTranslit' => true)) > 70) {
  7.                     $premoderation = true;
  8.                     $premoderationReasons['wrongText'] = true;
  9.                 }
  10.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement