Skip to content

Commit

Permalink
Updated examples
Browse files Browse the repository at this point in the history
Updeted Faker and FakerTest
  • Loading branch information
TS committed Apr 6, 2024
1 parent 7621fc3 commit 17ddfef
Show file tree
Hide file tree
Showing 4 changed files with 273 additions and 273 deletions.
2 changes: 1 addition & 1 deletion examples/demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@
$words = [];
$words[] = strtoupper($faker->words(14, '.', 2, 4));

print_r($words);
print_r($words);
2 changes: 1 addition & 1 deletion examples/readme.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@

$items[] = $faker->text(20, 3, 10); // Sedev emeze evekem ez denebebekepep

print_r($items);
print_r($items);
4 changes: 2 additions & 2 deletions src/Faker.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ protected function getRandomNextChar($prev)

if ($this->options['nextChar']['sameChar'] > $r1) {
$char = $prev;
} else if ($this->options['nextChar']['sameType'] > $r2) {
} elseif ($this->options['nextChar']['sameType'] > $r2) {
$char = $this->isVowel($prev) ? $this->getRandomVowel() : $this->getRandomConsonant();
} else if ($this->options['nextChar']['double'] > $r3) {
} elseif ($this->options['nextChar']['double'] > $r3) {
$char = $this->isVowel($prev) ? $this->getRandomVowel(true) : $this->getRandomConsonant(true);
} else {
$char = $this->isVowel($prev) ? $this->getRandomConsonant() : $this->getRandomVowel();
Expand Down
Loading

0 comments on commit 17ddfef

Please sign in to comment.