GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 8-9 lines in 2 locations

phpmyfaq/inc/libs/tcpdf/include/barcodes/qrcode.php 2 locations

@@ 2141-2148 (lines=8) @@
2138
	 protected function newFromNum($bits, $num) {
2139
		$bstream = $this->allocate($bits);
2140
		$mask = 1 << ($bits - 1);
2141
		for ($i=0; $i<$bits; ++$i) {
2142
			if ($num & $mask) {
2143
				$bstream[$i] = 1;
2144
			} else {
2145
				$bstream[$i] = 0;
2146
			}
2147
			$mask = $mask >> 1;
2148
		}
2149
		return $bstream;
2150
	}
2151
@@ 2163-2171 (lines=9) @@
2160
		$p=0;
2161
		for ($i=0; $i<$size; ++$i) {
2162
			$mask = 0x80;
2163
			for ($j=0; $j<8; ++$j) {
2164
				if ($data[$i] & $mask) {
2165
					$bstream[$p] = 1;
2166
				} else {
2167
					$bstream[$p] = 0;
2168
				}
2169
				$p++;
2170
				$mask = $mask >> 1;
2171
			}
2172
		}
2173
		return $bstream;
2174
	}