Code Duplication    Length = 15-15 lines in 2 locations

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

@@ 957-971 (lines=15) @@
954
		 protected function writeFormatInformation($width, &$frame, $mask, $level) {
955
			$blacks = 0;
956
			$format = $this->getFormatInfo($mask, $level);
957
			for ($i = 0; $i < 8; ++$i) {
958
				if ($format & 1) {
959
					$blacks += 2;
960
					$v = 0x85;
961
				} else {
962
					$v = 0x84;
963
				}
964
				$frame[8][$width - 1 - $i] = chr($v);
965
				if ($i < 6) {
966
					$frame[$i][8] = chr($v);
967
				} else {
968
					$frame[$i + 1][8] = chr($v);
969
				}
970
				$format = $format >> 1;
971
			}
972
			for ($i = 0; $i < 7; ++$i) {
973
			if ($format & 1) {
974
				$blacks += 2;
@@ 972-986 (lines=15) @@
969
				}
970
				$format = $format >> 1;
971
			}
972
			for ($i = 0; $i < 7; ++$i) {
973
			if ($format & 1) {
974
				$blacks += 2;
975
				$v = 0x85;
976
			} else {
977
				$v = 0x84;
978
			}
979
			$frame[$width - 7 + $i][8] = chr($v);
980
			if ($i == 0) {
981
				$frame[8][7] = chr($v);
982
			} else {
983
				$frame[8][6 - $i] = chr($v);
984
			}
985
			$format = $format >> 1;
986
			}
987
			return $blacks;
988
		}
989