From cf6ff8ea7c2f5640d18013a35f0cfeb0b7ea513a Mon Sep 17 00:00:00 2001 From: Hugo Fonseca Date: Thu, 17 Apr 2014 01:49:30 +0100 Subject: [PATCH] removed unused var --- src/Faker/Provider/Text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Faker/Provider/Text.php b/src/Faker/Provider/Text.php index c8615c18..3d13ebfd 100644 --- a/src/Faker/Provider/Text.php +++ b/src/Faker/Provider/Text.php @@ -80,7 +80,7 @@ abstract class Text extends \Faker\Provider\Base for ($i = 0; $i < $indexSize; $i++) { $index[] = array_shift($parts); } - $size = count($parts); + for ($i = 0, $count = count($parts); $i < $count; $i++) { $stringIndex = implode(' ', $index); if (!isset($words[$stringIndex])) {