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

@@ 558-570 (lines=13) @@
555
			$oModule = $this->getModuleInstance($this->module, $type, $kind);
556
		}
557
558
		if(!is_object($oModule))
559
		{
560
			$this->_setInputErrorToContext();
561
			$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
562
			$oMessageObject->setError(-1);
563
			$oMessageObject->setMessage($this->error);
564
			$oMessageObject->dispMessage();
565
			if($this->httpStatusCode)
566
			{
567
				$oMessageObject->setHttpStatusCode($this->httpStatusCode);
568
			}
569
			return $oMessageObject;
570
		}
571
572
		// If there is no such action in the module object
573
		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
@@ 576-589 (lines=14) @@
573
		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
574
		{
575
576
			if(!Context::isInstalled())
577
			{
578
				$this->_setInputErrorToContext();
579
				$this->error = 'msg_invalid_request';
580
				$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
581
				$oMessageObject->setError(-1);
582
				$oMessageObject->setMessage($this->error);
583
				$oMessageObject->dispMessage();
584
				if($this->httpStatusCode)
585
				{
586
					$oMessageObject->setHttpStatusCode($this->httpStatusCode);
587
				}
588
				return $oMessageObject;
589
			}
590
591
			$forward = NULL;
592
			// 1. Look for the module with action name
@@ 694-706 (lines=13) @@
691
					$oModule = $this->getModuleInstance($forward->module, $type, $kind);
692
				}
693
694
				if(!is_object($oModule))
695
				{
696
					$this->_setInputErrorToContext();
697
					$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
698
					$oMessageObject->setError(-1);
699
					$oMessageObject->setMessage('msg_module_is_not_exists');
700
					$oMessageObject->dispMessage();
701
					if($this->httpStatusCode)
702
					{
703
						$oMessageObject->setHttpStatusCode($this->httpStatusCode);
704
					}
705
					return $oMessageObject;
706
				}
707
708
				if($this->module == "admin" && $type == "view")
709
				{