From 7dcd4b9447ce140814443709691c3646c4a76ad7 Mon Sep 17 00:00:00 2001 From: Gula Andrij Date: Thu, 8 Sep 2016 13:58:02 +0300 Subject: [PATCH 1/2] Update Text.php fix issue #1024 --- 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 3aaded974f..eb67be0240 100644 --- a/src/Faker/Provider/Text.php +++ b/src/Faker/Provider/Text.php @@ -137,6 +137,6 @@ protected static function validStart($word) protected static function appendEnd($text) { - return $text.'.'; + return rtrim($text,',').'.'; } } From 8454cea372a61ebdd9745f75611397da79f81a6c Mon Sep 17 00:00:00 2001 From: Gula Andrij Date: Thu, 8 Sep 2016 14:03:35 +0300 Subject: [PATCH 2/2] Update Text.php --- 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 eb67be0240..21dbc393ce 100644 --- a/src/Faker/Provider/Text.php +++ b/src/Faker/Provider/Text.php @@ -137,6 +137,6 @@ protected static function validStart($word) protected static function appendEnd($text) { - return rtrim($text,',').'.'; + return rtrim($text, ',').'.'; } }