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
snipe authored Sep 7, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents a5e866f + a2a185f commit 54e8c6b
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
@@ -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)) {
2 changes: 1 addition & 1 deletion tests/CensorTest.php
Original file line number Diff line number Diff line change
@@ -113,7 +113,7 @@ public function testSameCensorObj()
public function testWhiteListCensorObj()
{
$censor = new CensorWords;
$censor->addWhileList([
$censor->addWhiteList([
'fuck',
'ass',
'Mass',

0 comments on commit 54e8c6b

Please sign in to comment.