Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 1193-1200 (lines=8) @@
1190
						$this->runLength[0] = -1;
1191
						$head = 1;
1192
						$this->runLength[$head] = 1;
1193
					} elseif ($x > 0) {
1194
						if ((ord($frameY[$x]) ^ ord($frameY[$x - 1])) & 1) {
1195
							$head++;
1196
							$this->runLength[$head] = 1;
1197
						} else {
1198
							$this->runLength[$head]++;
1199
						}
1200
					}
1201
				}
1202
				$demerit += $this->calcN1N3($head + 1);
1203
			}
@@ 1212-1219 (lines=8) @@
1209
						$this->runLength[0] = -1;
1210
						$head = 1;
1211
						$this->runLength[$head] = 1;
1212
					} elseif ($y > 0) {
1213
						if ((ord($frame[$y][$x]) ^ ord($frame[$y - 1][$x])) & 1) {
1214
							$head++;
1215
							$this->runLength[$head] = 1;
1216
						} else {
1217
							$this->runLength[$head]++;
1218
						}
1219
					}
1220
				}
1221
				$demerit += $this->calcN1N3($head + 1);
1222
			}