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

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

@@ 245-256 (lines=12) @@
242
		return false;	
243
	}
244
	
245
	public function get_backup_size($backup_name)
246
	{
247
		$backup_size = $this->get_storage_filesystem()->getSize($backup_name);
248
		if($this->is_multipart($backup_name))
249
		{
250
			$backup_parts = $this->get_multipart_files($backup_name);
251
			foreach($backup_parts as $part_file)
252
				$backup_size += $this->get_storage_filesystem()->getSize($part_file);
253
		}
254
		
255
		return $backup_size;
256
	}
257
	
258
	public function get_multipart_files($backup_name, $storage_selection = "")
259
	{

restore/xcloner_restore.php 1 location

@@ 913-924 (lines=12) @@
910
		return false;	
911
	}
912
	
913
	public function get_backup_size($backup_name)
914
	{
915
		$backup_size = $this->filesystem->getSize($backup_name);
916
		if($this->is_multipart($backup_name))
917
		{
918
			$backup_parts = $this->get_multipart_files($backup_name);
919
			foreach($backup_parts as $part_file)
920
				$backup_size += $this->filesystem->getSize($part_file);
921
		}
922
		
923
		return $backup_size;
924
	}
925
	
926
	public function get_multipart_files($backup_name)
927
	{