From a51e022006473c8dc3a32aa1b9e99b1dda6d2344 Mon Sep 17 00:00:00 2001 From: Scott Robertson Date: Sun, 6 Jul 2014 05:31:43 +0100 Subject: [PATCH] Generate a larger amount of text before substr. --- src/Zizaco/FactoryMuff/Kind/Text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Zizaco/FactoryMuff/Kind/Text.php b/src/Zizaco/FactoryMuff/Kind/Text.php index 3c8aebb..a9754bb 100644 --- a/src/Zizaco/FactoryMuff/Kind/Text.php +++ b/src/Zizaco/FactoryMuff/Kind/Text.php @@ -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); }