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

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
	{

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

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