Skip to content

Commit

Permalink
add back $vows since it's used via variable variables
Browse files Browse the repository at this point in the history
  • Loading branch information
DAcodedBEAT committed Aug 9, 2024
1 parent 77e530e commit 114b830
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ChurchCRM/utils/MiscUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static function randomWord(int $length = 6): string
{
$cons = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'r', 's', 't', 'v', 'w', 'x', 'z', 'pt', 'gl', 'gr', 'ch', 'ph', 'ps', 'sh', 'st', 'th', 'wh'];
$cons_cant_start = ['ck', 'cm', 'dr', 'ds', 'ft', 'gh', 'gn', 'kr', 'ks', 'ls', 'lt', 'lr', 'mp', 'mt', 'ms', 'ng', 'ns', 'rd', 'rg', 'rs', 'rt', 'ss', 'ts', 'tch'];
$vows = ['a', 'e', 'i', 'o', 'u', 'y', 'ee', 'oa', 'oo'];
$current = (random_int(0, 1) === 0 ? 'cons' : 'vows');
$word = '';
while (strlen($word) < $length) {
Expand Down

0 comments on commit 114b830

Please sign in to comment.