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

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