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

@@ 552-564 (lines=13) @@
549
			$oModule = $this->getModuleInstance($this->module, $type, $kind);
550
		}
551
552
		if(!is_object($oModule))
553
		{
554
			$this->_setInputErrorToContext();
555
			$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
556
			$oMessageObject->setError(-1);
557
			$oMessageObject->setMessage($this->error);
558
			$oMessageObject->dispMessage();
559
			if($this->httpStatusCode)
560
			{
561
				$oMessageObject->setHttpStatusCode($this->httpStatusCode);
562
			}
563
			return $oMessageObject;
564
		}
565
566
		// If there is no such action in the module object
567
		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
@@ 570-583 (lines=14) @@
567
		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
568
		{
569
570
			if(!Context::isInstalled())
571
			{
572
				$this->_setInputErrorToContext();
573
				$this->error = 'msg_invalid_request';
574
				$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
575
				$oMessageObject->setError(-1);
576
				$oMessageObject->setMessage($this->error);
577
				$oMessageObject->dispMessage();
578
				if($this->httpStatusCode)
579
				{
580
					$oMessageObject->setHttpStatusCode($this->httpStatusCode);
581
				}
582
				return $oMessageObject;
583
			}
584
585
			$forward = NULL;
586
			// 1. Look for the module with action name
@@ 671-683 (lines=13) @@
668
					$oModule = $this->getModuleInstance($forward->module, $type, $kind);
669
				}
670
671
				if(!is_object($oModule))
672
				{
673
					$this->_setInputErrorToContext();
674
					$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
675
					$oMessageObject->setError(-1);
676
					$oMessageObject->setMessage('msg_module_is_not_exists');
677
					$oMessageObject->dispMessage();
678
					if($this->httpStatusCode)
679
					{
680
						$oMessageObject->setHttpStatusCode($this->httpStatusCode);
681
					}
682
					return $oMessageObject;
683
				}
684
685
				if($this->module == "admin" && $type == "view")
686
				{