Skip to content

Commit d12e0ea

Browse files
committed
refactor
1 parent 4c03599 commit d12e0ea

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Investigator.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ private function notLowercasesIn(array $array): array
2626

2727
$clean = preg_replace('/[^A-Za-z]/', '', $word);
2828

29-
if ($clean == '') {
30-
continue;
31-
}
32-
33-
if (! ctype_lower($clean)) {
29+
if ($clean !== '' && ! ctype_lower($clean)) {
3430
$unwanted[] = $word;
3531
}
3632
}

0 commit comments

Comments
 (0)