From cb230086608eeec3424fed11a6dcb425a9b9028c Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Wed, 17 May 2017 16:58:52 -0500 Subject: [PATCH] Revert "Merge pull request #105 from FraGoTe/patch-1" This reverts commit 1fbb4fdf675769615a99726629076facac411854, reversing changes made to 95c93865633bc65209806d1eba3c00a60383c5db. The revert was performed as it introduced an infinite loop in the `BarcodeTest::testCODE128()` test case. Conflicts: src/Barcode/Code128.php --- src/Barcode/Code128.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Barcode/Code128.php b/src/Barcode/Code128.php index 613b8a98d..2daee6d1a 100644 --- a/src/Barcode/Code128.php +++ b/src/Barcode/Code128.php @@ -180,10 +180,7 @@ public function hasValidCharacters($value) break; } - if (! empty($value) && strlen($value) > 1) { - $value = $strWrapper->substr($value, 1, null); - } - + $value = $strWrapper->substr($value, 1, null); $read = $set; }