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

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