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 = 18-22 lines in 2 locations

modules/document/document.item.php 2 locations

@@ 677-698 (lines=22) @@
674
		}
675
	}
676
677
	function getExtraEidValue($eid)
678
	{
679
		$extra_vars = $this->getExtraVars();
680
681
		if($extra_vars)
682
		{
683
			// Handle extra variable(eid)
684
			foreach($extra_vars as $idx => $key)
685
			{
686
				$extra_eid[$key->eid] = $key;
687
			}
688
		}
689
		
690
		if(is_array($extra_eid) && array_key_exists($eid,$extra_eid))
691
		{
692
			return $extra_eid[$eid]->getValue();
693
		}
694
		else
695
		{
696
			return '';
697
		}
698
	}
699
700
	function getExtraEidValueHTML($eid)
701
	{
@@ 700-717 (lines=18) @@
697
		}
698
	}
699
700
	function getExtraEidValueHTML($eid)
701
	{
702
		$extra_vars = $this->getExtraVars();
703
		// Handle extra variable(eid)
704
		foreach($extra_vars as $idx => $key)
705
		{
706
			$extra_eid[$key->eid] = $key;
707
		}
708
		
709
		if(is_array($extra_eid) && array_key_exists($eid,$extra_eid))
710
		{
711
			return $extra_eid[$eid]->getValueHTML();
712
		}
713
		else
714
		{
715
			return '';
716
		}
717
	}
718
719
	function getExtraVarsValue($key)
720
	{