Skip to content

Commit

Permalink
Merge pull request #57 from Zizaco/text-fix
Browse files Browse the repository at this point in the history
Generate a larger amount of text before substr.
  • Loading branch information
scottrobertson committed Jul 6, 2014
2 parents b534116 + a51e022 commit 4018210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Zizaco/FactoryMuff/Kind/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function generate()

// Generate a large amount of text. The reason for this is that
// faker uses a maximum length, and not an exact length. We then substr this
$text = $this->faker->text($length * 3);
$text = $this->faker->text($length * 5);

return substr($text, 0, $length);
}
Expand Down

0 comments on commit 4018210

Please sign in to comment.