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

modules/document/document.controller.php 2 locations

@@ 801-807 (lines=7) @@
798
		// remove thumbnails
799
		FileHandler::removeDir(sprintf('files/thumbnails/%s',getNumberingPath($obj->document_srl, 3)));
800
		// Set the attachment to be invalid state
801
		if($oDocument->hasUploadedFiles())
802
		{
803
			$args = new stdClass();
804
			$args->upload_target_srl = $oDocument->document_srl;
805
			$args->isvalid = 'N';
806
			executeQuery('file.updateFileValid', $args);
807
		}
808
		// Call a trigger (after)
809
		if($output->toBool())
810
		{
@@ 2446-2452 (lines=7) @@
2443
			$oDocument = $oDocumentModel->getDocument($obj->document_srl, $this->grant->manager);
2444
		}
2445
		// Set the attachment to be invalid state
2446
		if($oDocument->hasUploadedFiles())
2447
		{
2448
			$args = new stdClass;
2449
			$args->upload_target_srl = $oDocument->document_srl;
2450
			$args->isvalid = 'N';
2451
			executeQuery('file.updateFileValid', $args);
2452
		}
2453
2454
		$this->setMessage('success_saved');
2455
		$this->add('document_srl', $obj->document_srl);