浏览代码

去掉警告的参数

zhouzhijian 9 年之前
父节点
当前提交
02799785ce
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      helper/sensitive_word/dfa.php

+ 2 - 2
helper/sensitive_word/dfa.php

@@ -19,7 +19,7 @@ class DFAFilter
         $this->loadFile();
     }
 
-    private function loadFile($dictPath)
+    private function loadFile()
     {
         $this->dict = array();
         $this->initDict();
@@ -57,7 +57,7 @@ class DFAFilter
         fclose($handle);
     }
 
-    public function filter($str, $maxDistance = 5)
+    public function filter($str, $maxDistance = 10)
     {
         if ($maxDistance < 1) {
             $maxDistance = 1;