From a2a185f11c444152e03139e033dbc6382baa783d Mon Sep 17 00:00:00 2001 From: Kevin Boyd Date: Thu, 7 Sep 2017 01:13:56 -0700 Subject: [PATCH] Fix typo in the addWhiteList method name --- src/CensorWords.php | 2 +- tests/CensorTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CensorWords.php b/src/CensorWords.php index eb6d42d..16f360a 100644 --- a/src/CensorWords.php +++ b/src/CensorWords.php @@ -89,7 +89,7 @@ private function readBadWords($dictionary) { * * @param array $list */ - public function addWhileList(array $list) + public function addWhiteList(array $list) { foreach ($list as $value) { if (is_string($value) && !empty($value)) { diff --git a/tests/CensorTest.php b/tests/CensorTest.php index c007b32..6c76a6a 100644 --- a/tests/CensorTest.php +++ b/tests/CensorTest.php @@ -113,7 +113,7 @@ public function testSameCensorObj() public function testWhiteListCensorObj() { $censor = new CensorWords; - $censor->addWhileList([ + $censor->addWhiteList([ 'fuck', 'ass', 'Mass',