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

@@ 797-803 (lines=7) @@
794
		// remove thumbnails
795
		FileHandler::removeDir(sprintf('files/thumbnails/%s',getNumberingPath($obj->document_srl, 3)));
796
		// Set the attachment to be invalid state
797
		if($oDocument->hasUploadedFiles())
798
		{
799
			$args = new stdClass();
800
			$args->upload_target_srl = $oDocument->document_srl;
801
			$args->isvalid = 'N';
802
			executeQuery('file.updateFileValid', $args);
803
		}
804
		// Call a trigger (after)
805
		if($output->toBool())
806
		{
@@ 2429-2435 (lines=7) @@
2426
			$oDocument = $oDocumentModel->getDocument($obj->document_srl, $this->grant->manager);
2427
		}
2428
		// Set the attachment to be invalid state
2429
		if($oDocument->hasUploadedFiles())
2430
		{
2431
			$args = new stdClass;
2432
			$args->upload_target_srl = $oDocument->document_srl;
2433
			$args->isvalid = 'N';
2434
			executeQuery('file.updateFileValid', $args);
2435
		}
2436
2437
		$this->setMessage('success_saved');
2438
		$this->add('document_srl', $obj->document_srl);