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

@@ 571-583 (lines=13) @@
568
			$oModule = $this->getModuleInstance($this->module, $type, $kind);
569
		}
570
571
		if(!is_object($oModule))
572
		{
573
			$this->_setInputErrorToContext();
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
		// If there is no such action in the module object
586
		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
@@ 589-602 (lines=14) @@
586
		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
587
		{
588
589
			if(!Context::isInstalled())
590
			{
591
				$this->_setInputErrorToContext();
592
				$this->error = 'msg_invalid_request';
593
				$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
594
				$oMessageObject->setError(-1);
595
				$oMessageObject->setMessage($this->error);
596
				$oMessageObject->dispMessage();
597
				if($this->httpStatusCode)
598
				{
599
					$oMessageObject->setHttpStatusCode($this->httpStatusCode);
600
				}
601
				return $oMessageObject;
602
			}
603
604
			$forward = NULL;
605
			// 1. Look for the module with action name
@@ 690-702 (lines=13) @@
687
					$oModule = $this->getModuleInstance($forward->module, $type, $kind);
688
				}
689
690
				if(!is_object($oModule))
691
				{
692
					$this->_setInputErrorToContext();
693
					$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
694
					$oMessageObject->setError(-1);
695
					$oMessageObject->setMessage('msg_module_is_not_exists');
696
					$oMessageObject->dispMessage();
697
					if($this->httpStatusCode)
698
					{
699
						$oMessageObject->setHttpStatusCode($this->httpStatusCode);
700
					}
701
					return $oMessageObject;
702
				}
703
704
				if($this->module == "admin" && $type == "view")
705
				{