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

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
	{

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

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