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

@@ 485-497 (lines=13) @@
482
			$oModule = $this->getModuleInstance($this->module, $type, $kind);
483
		}
484
485
		if(!is_object($oModule))
486
		{
487
			$this->_setInputErrorToContext();
488
			$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
489
			$oMessageObject->setError(-1);
490
			$oMessageObject->setMessage($this->error);
491
			$oMessageObject->dispMessage();
492
			if($this->httpStatusCode)
493
			{
494
				$oMessageObject->setHttpStatusCode($this->httpStatusCode);
495
			}
496
			return $oMessageObject;
497
		}
498
499
		// If there is no such action in the module object
500
		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
@@ 503-516 (lines=14) @@
500
		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
501
		{
502
503
			if(!Context::isInstalled())
504
			{
505
				$this->_setInputErrorToContext();
506
				$this->error = 'msg_invalid_request';
507
				$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
508
				$oMessageObject->setError(-1);
509
				$oMessageObject->setMessage($this->error);
510
				$oMessageObject->dispMessage();
511
				if($this->httpStatusCode)
512
				{
513
					$oMessageObject->setHttpStatusCode($this->httpStatusCode);
514
				}
515
				return $oMessageObject;
516
			}
517
518
			$forward = NULL;
519
			// 1. Look for the module with action name
@@ 604-616 (lines=13) @@
601
					$oModule = $this->getModuleInstance($forward->module, $type, $kind);
602
				}
603
604
				if(!is_object($oModule))
605
				{
606
					$this->_setInputErrorToContext();
607
					$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
608
					$oMessageObject->setError(-1);
609
					$oMessageObject->setMessage('msg_module_is_not_exists');
610
					$oMessageObject->dispMessage();
611
					if($this->httpStatusCode)
612
					{
613
						$oMessageObject->setHttpStatusCode($this->httpStatusCode);
614
					}
615
					return $oMessageObject;
616
				}
617
618
				if($this->module == "admin" && $type == "view")
619
				{