Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1333-1340 (lines=8) @@
1330
			}
1331
			$run = $p;
1332
			$mode = $this->identifyMode($p);
1333
			if ($mode == QR_MODE_8B) {
1334
				$dif = $this->estimateBitsModeNum($run) + 4 + $ln
1335
				+ $this->estimateBitsMode8(1)         // + 4 + l8
1336
				- $this->estimateBitsMode8($run + 1); // - 4 - l8
1337
				if ($dif > 0) {
1338
					return $this->eat8();
1339
				}
1340
			}
1341
			if ($mode == QR_MODE_AN) {
1342
				$dif = $this->estimateBitsModeNum($run) + 4 + $ln
1343
				+ $this->estimateBitsModeAn(1)        // + 4 + la
@@ 1341-1348 (lines=8) @@
1338
					return $this->eat8();
1339
				}
1340
			}
1341
			if ($mode == QR_MODE_AN) {
1342
				$dif = $this->estimateBitsModeNum($run) + 4 + $ln
1343
				+ $this->estimateBitsModeAn(1)        // + 4 + la
1344
				- $this->estimateBitsModeAn($run + 1); // - 4 - la
1345
				if ($dif > 0) {
1346
					return $this->eatAn();
1347
				}
1348
			}
1349
			$this->items = $this->appendNewInputItem($this->items, QR_MODE_NM, $run, str_split($this->dataStr));
1350
			return $run;
1351
		}