Skip to content

Commit

Permalink
Merge pull request #45 from beryllium/fix-whitelist-typo
Browse files Browse the repository at this point in the history
Fix typo in the addWhiteList method name
  • Loading branch information
snipe authored Sep 7, 2017
2 parents a5e866f + a2a185f commit 54e8c6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CensorWords.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,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)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/CensorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function testSameCensorObj()
public function testWhiteListCensorObj()
{
$censor = new CensorWords;
$censor->addWhileList([
$censor->addWhiteList([
'fuck',
'ass',
'Mass',
Expand Down

0 comments on commit 54e8c6b

Please sign in to comment.