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

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Object/Ean5.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function getChecksum($text)
$this->checkText($text);
$checksum = 0;

for ($i = 0 ; $i < $this->barcodeLength; $i ++) {
for ($i = 0; $i < $this->barcodeLength; $i ++) {
$checksum += intval($text{$i}) * ($i % 2 ? 9 : 3);
}

Expand Down

0 comments on commit a3442c5

Please sign in to comment.