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 = 13-14 lines in 3 locations

classes/module/ModuleHandler.class.php 3 locations

@@ 544-556 (lines=13) @@
541
			$oModule = $this->getModuleInstance($this->module, $type, $kind);
542
		}
543
544
		if(!is_object($oModule))
545
		{
546
			$this->_setInputErrorToContext();
547
			$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
548
			$oMessageObject->setError(-1);
549
			$oMessageObject->setMessage($this->error);
550
			$oMessageObject->dispMessage();
551
			if($this->httpStatusCode)
552
			{
553
				$oMessageObject->setHttpStatusCode($this->httpStatusCode);
554
			}
555
			return $oMessageObject;
556
		}
557
558
		// If there is no such action in the module object
559
		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
@@ 562-575 (lines=14) @@
559
		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
560
		{
561
562
			if(!Context::isInstalled())
563
			{
564
				$this->_setInputErrorToContext();
565
				$this->error = 'msg_invalid_request';
566
				$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
567
				$oMessageObject->setError(-1);
568
				$oMessageObject->setMessage($this->error);
569
				$oMessageObject->dispMessage();
570
				if($this->httpStatusCode)
571
				{
572
					$oMessageObject->setHttpStatusCode($this->httpStatusCode);
573
				}
574
				return $oMessageObject;
575
			}
576
577
			$forward = NULL;
578
			// 1. Look for the module with action name
@@ 663-675 (lines=13) @@
660
					$oModule = $this->getModuleInstance($forward->module, $type, $kind);
661
				}
662
663
				if(!is_object($oModule))
664
				{
665
					$this->_setInputErrorToContext();
666
					$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
667
					$oMessageObject->setError(-1);
668
					$oMessageObject->setMessage('msg_module_is_not_exists');
669
					$oMessageObject->dispMessage();
670
					if($this->httpStatusCode)
671
					{
672
						$oMessageObject->setHttpStatusCode($this->httpStatusCode);
673
					}
674
					return $oMessageObject;
675
				}
676
677
				if($this->module == "admin" && $type == "view")
678
				{