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 = 17-18 lines in 3 locations

phpmyfaq/inc/libs/tcpdf/tcpdf_barcodes_1d.php 3 locations

@@ 638-655 (lines=18) @@
635
		$bararray = array('code' => $code, 'maxw' => 0, 'maxh' => 1, 'bcode' => array());
636
		$k = 0;
637
		$clen = strlen($code);
638
		for ($i = 0; $i < $clen; ++$i) {
639
			$char = ord($code{$i});
640
			if(!isset($chr[$char])) {
641
				// invalid character
642
				return false;
643
			}
644
			for ($j = 0; $j < 6; ++$j) {
645
				if (($j % 2) == 0) {
646
					$t = true; // bar
647
				} else {
648
					$t = false; // space
649
				}
650
				$w = $chr[$char]{$j};
651
				$bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0);
652
				$bararray['maxw'] += $w;
653
				++$k;
654
			}
655
		}
656
		$bararray['bcode'][$k] = array('t' => true, 'w' => 1, 'h' => 1, 'p' => 0);
657
		$bararray['maxw'] += 1;
658
		++$k;
@@ 1828-1844 (lines=17) @@
1825
		$seq = '';
1826
		$code = 'A'.strtoupper($code).'A';
1827
		$len = strlen($code);
1828
		for ($i = 0; $i < $len; ++$i) {
1829
			if (!isset($chr[$code{$i}])) {
1830
				return false;
1831
			}
1832
			$seq = $chr[$code{$i}];
1833
			for ($j = 0; $j < 8; ++$j) {
1834
				if (($j % 2) == 0) {
1835
					$t = true; // bar
1836
				} else {
1837
					$t = false; // space
1838
				}
1839
				$w = $seq{$j};
1840
				$bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0);
1841
				$bararray['maxw'] += $w;
1842
				++$k;
1843
			}
1844
		}
1845
		return $bararray;
1846
	}
1847
@@ 1919-1935 (lines=17) @@
1916
		}
1917
		$code = 'S'.$code.'S';
1918
		$len += 3;
1919
		for ($i = 0; $i < $len; ++$i) {
1920
			if (!isset($chr[$code{$i}])) {
1921
				return false;
1922
			}
1923
			$seq = $chr[$code{$i}];
1924
			for ($j = 0; $j < 6; ++$j) {
1925
				if (($j % 2) == 0) {
1926
					$t = true; // bar
1927
				} else {
1928
					$t = false; // space
1929
				}
1930
				$w = $seq{$j};
1931
				$bararray['bcode'][$k] = array('t' => $t, 'w' => $w, 'h' => 1, 'p' => 0);
1932
				$bararray['maxw'] += $w;
1933
				++$k;
1934
			}
1935
		}
1936
		return $bararray;
1937
	}
1938