Skip to content

Commit

Permalink
Fix typo in the addWhiteList method name
Browse files Browse the repository at this point in the history
  • Loading branch information
beryllium committed Sep 7, 2017
1 parent 986573c commit a2a185f
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 @@ -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)) {
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 a2a185f

Please sign in to comment.