Code Duplication    Length = 8-8 lines in 2 locations

web_interface/astpp/application/libraries/html2pdf/_tcpdf_5.0.002/barcodes.php 2 locations

@@ 641-648 (lines=8) @@
638
		}
639
		$seq = '110'; // left guard
640
		$clen = strlen($code);
641
		for ($i = 0; $i < $clen; ++$i) {
642
			$digit = $code{$i};
643
			if ( ! isset($chr[$digit])) {
644
				// invalid character
645
				return false;
646
			}
647
			$seq .= $chr[$digit];
648
		}		
649
		$seq .= '1001'; // right guard
650
		$bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());
651
		return $this->binseq_to_array($seq, $bararray);
@@ 684-691 (lines=8) @@
681
		}
682
		$seq = '11011010';
683
		$clen = strlen($code);
684
		for ($i = 0; $i < $clen; ++$i) {
685
			$digit = $code{$i};
686
			if ( ! isset($chr[$digit])) {
687
				// invalid character
688
				return false;
689
			}
690
			$seq .= $chr[$digit];
691
		}		
692
		$seq .= '1101011';
693
		$bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());
694
		return $this->binseq_to_array($seq, $bararray);