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

Commit

Permalink
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/Object/AbstractObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,9 +576,9 @@ public function getTextToDisplay()
{
if ($this->withChecksumInText) {
return $this->getText();
} else {
return $this->addLeadingZeros($this->text, true);
}

return $this->addLeadingZeros($this->text, true);
}

/**
Expand Down Expand Up @@ -758,9 +758,9 @@ public function getQuietZone()
{
if ($this->withQuietZones || $this->mandatoryQuietZones) {
return 10 * $this->barThinWidth * $this->factor;
} else {
return 0;
}

return 0;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Object/Code39.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ public function getTextToDisplay()
$text = parent::getTextToDisplay();
if (substr($text, 0, 1) != '*' && substr($text, -1) != '*') {
return '*' . $text . '*';
} else {
return $text;
}

return $text;
}

/**
Expand Down
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 0e69738

Please sign in to comment.