From 94347bdf1405e9840873bc75b6435079c3f2afa2 Mon Sep 17 00:00:00 2001 From: JonPurvis Date: Wed, 7 Aug 2024 21:19:55 +0100 Subject: [PATCH] add assign to tolerated words --- src/Expectations/Profanity.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Expectations/Profanity.php b/src/Expectations/Profanity.php index 9eb013e..8c7723a 100644 --- a/src/Expectations/Profanity.php +++ b/src/Expectations/Profanity.php @@ -25,8 +25,6 @@ function (ObjectDescription $object) use (&$foundWords, $excluding, $including): $foundWords = array_filter($words, fn ($word): bool => preg_match('/'.preg_quote($word, '/').'/i', $fileContents) === 1); - dd($foundWords); - return $foundWords === []; }, 'to not use profanity',