Lines Matching refs:code
6 * MSI - Variation of Plessey code, with similar applications
13 * @param int $code
16 public function __construct($code, $checksum = false, $quiet_zone_left = null, $quiet_zone_right = null)
18 $this->init($code, $checksum);
28 * @param int $code
31 private function init($code, $checksum)
56 $clen = strlen($code);
60 $check += (hexdec($code[$i]) * $p);
70 $code .= $check;
74 $clen = strlen($code);
76 $digit = $code[$i];
79 throw new \Mpdf\Barcode\BarcodeException(sprintf('Invalid character "%s" in MSI barcode value "%s"', $digit, $code));
84 $bararray = ['code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => []];