Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Revert "Merge pull request #105 from FraGoTe/patch-1"
Browse files Browse the repository at this point in the history
This reverts commit 1fbb4fd, reversing
changes made to 95c9386.

The revert was performed as it introduced an infinite loop in the
`BarcodeTest::testCODE128()` test case.

Conflicts:
	src/Barcode/Code128.php
  • Loading branch information
weierophinney committed May 17, 2017
1 parent 98ed71c commit cb23008
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Barcode/Code128.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit cb23008

Please sign in to comment.