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

includes/class-xcloner-file-system.php 1 location

@@ 459-463 (lines=5) @@
456
		
457
		foreach($contents as $file)
458
		{
459
			if(preg_match("/.xcloner-(.*)/",$file['path']))
460
			{
461
				$tmp_filesystem->deleteDir($file['path']);
462
				$this->logger->info(sprintf("Delete temporary directory %s", $file['path']));
463
			}
464
		}
465
		
466
		return true;

restore/xcloner_restore.php 1 location

@@ 540-543 (lines=4) @@
537
			
538
			if($file['type'] == "dir")
539
			{
540
				if(preg_match("/xcloner-(\w*)/", $file['basename'], $matches)){
541
					$this->logger->info(sprintf('Deleting temporary folder %s', $file['path']));
542
					$this->target_filesystem->deleteDir($file['path']);
543
				}
544
			}
545
		}
546