Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Dec 21, 2020
1 parent 4017bf9 commit 935caf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Faker/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function withUnique()
public function withMaybe(float $weight = 0.5, $default = null)
{
if (mt_rand(1, 100) <= (100*$weight)) {
return $this;
return $this;
}

return new DefaultGenerator($default);
Expand Down

0 comments on commit 935caf4

Please sign in to comment.