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

@@ 455-467 (lines=13) @@
452
			$oModule = $this->getModuleInstance($this->module, $type, $kind);
453
		}
454
455
		if(!is_object($oModule))
456
		{
457
			$this->_setInputErrorToContext();
458
			$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
459
			$oMessageObject->setError(-1);
460
			$oMessageObject->setMessage($this->error);
461
			$oMessageObject->dispMessage();
462
			if($this->httpStatusCode)
463
			{
464
				$oMessageObject->setHttpStatusCode($this->httpStatusCode);
465
			}
466
			return $oMessageObject;
467
		}
468
469
		// If there is no such action in the module object
470
		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
@@ 473-486 (lines=14) @@
470
		if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
471
		{
472
473
			if(!Context::isInstalled())
474
			{
475
				$this->_setInputErrorToContext();
476
				$this->error = 'msg_invalid_request';
477
				$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
478
				$oMessageObject->setError(-1);
479
				$oMessageObject->setMessage($this->error);
480
				$oMessageObject->dispMessage();
481
				if($this->httpStatusCode)
482
				{
483
					$oMessageObject->setHttpStatusCode($this->httpStatusCode);
484
				}
485
				return $oMessageObject;
486
			}
487
488
			$forward = NULL;
489
			// 1. Look for the module with action name
@@ 574-586 (lines=13) @@
571
					$oModule = $this->getModuleInstance($forward->module, $type, $kind);
572
				}
573
574
				if(!is_object($oModule))
575
				{
576
					$this->_setInputErrorToContext();
577
					$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
578
					$oMessageObject->setError(-1);
579
					$oMessageObject->setMessage('msg_module_is_not_exists');
580
					$oMessageObject->dispMessage();
581
					if($this->httpStatusCode)
582
					{
583
						$oMessageObject->setHttpStatusCode($this->httpStatusCode);
584
					}
585
					return $oMessageObject;
586
				}
587
588
				if($this->module == "admin" && $type == "view")
589
				{