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 = 9-9 lines in 2 locations

classes/module/ModuleHandler.class.php 2 locations

@@ 516-524 (lines=9) @@
513
514
		// check CSRF for non-GET actions
515
		$use_check_csrf = isset($xml_info->action->{$this->act}) && $xml_info->action->{$this->act}->check_csrf !== 'false';
516
		if($use_check_csrf && $_SERVER['REQUEST_METHOD'] !== 'GET' && Context::isInstalled() && !checkCSRF())
517
		{
518
			$this->error = 'msg_invalid_request';
519
			$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
520
			$oMessageObject->setError(-1);
521
			$oMessageObject->setMessage($this->error);
522
			$oMessageObject->dispMessage();
523
			return $oMessageObject;
524
		}
525
526
		// Admin ip
527
		if($kind == 'admin' && $_SESSION['denied_admin'] == 'Y')
@@ 640-648 (lines=9) @@
637
638
				// check CSRF for non-GET actions
639
				$use_check_csrf = isset($xml_info->action->{$this->act}) && $xml_info->action->{$this->act}->check_csrf !== 'false';
640
				if($use_check_csrf && $_SERVER['REQUEST_METHOD'] !== 'GET' && Context::isInstalled() && !checkCSRF())
641
				{
642
					$this->error = 'msg_invalid_request';
643
					$oMessageObject = ModuleHandler::getModuleInstance('message', $display_mode);
644
					$oMessageObject->setError(-1);
645
					$oMessageObject->setMessage($this->error);
646
					$oMessageObject->dispMessage();
647
					return $oMessageObject;
648
				}
649
650
				// SECISSUE also check foward act method
651
				// check REQUEST_METHOD in controller