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

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

@@ 258-276 (lines=19) @@
255
		return $backup_size;
256
	}
257
	
258
	public function get_multipart_files($backup_name, $storage_selection = "")
259
	{
260
		$files = array();
261
		
262
		if($this->is_multipart($backup_name))
263
		{
264
			$lines = explode(PHP_EOL, $this->get_storage_filesystem($storage_selection)->read($backup_name));
265
			foreach($lines as $line)
266
			{
267
				if($line)
268
				{
269
					$data = str_getcsv($line);
270
					$files[] = $data[0];
271
				}
272
			}
273
		}
274
		
275
		return $files;
276
	}
277
	
278
	public function delete_backup_by_name($backup_name, $storage_selection = "")
279
	{

restore/xcloner_restore.php 1 location

@@ 926-944 (lines=19) @@
923
		return $backup_size;
924
	}
925
	
926
	public function get_multipart_files($backup_name)
927
	{
928
		$files = array();
929
		
930
		if($this->is_multipart($backup_name))
931
		{
932
			$lines = explode(PHP_EOL, $this->filesystem->read($backup_name));
933
			foreach($lines as $line)
934
			{
935
				if($line)
936
				{
937
					$data = str_getcsv($line);
938
					$files[] = $data[0];
939
				}
940
			}
941
		}
942
		
943
		return $files;
944
	}
945
	
946
	private function sort_by( &$array, $field, $direction = 'asc')
947
	{