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

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

@@ 322-344 (lines=23) @@
319
		$backup_files = array();
320
		$parents = array();
321
		
322
		foreach($list as $file_info)
323
		{
324
			if(isset($file_info['extension']) and $file_info['extension'] == "csv")
325
			{
326
				$data = array();
327
				
328
				$lines = explode(PHP_EOL, $this->get_storage_filesystem($storage_selection)->read($file_info['path']));
329
				foreach($lines as $line)
330
					if($line)
331
					{
332
						$data = str_getcsv($line);
333
						if(is_array($data)){
334
							$parents[$data[0]] = $file_info['basename'];
335
							$file_info['childs'][] = $data;
336
							$file_info['size'] += $data[2];
337
						}
338
					}
339
						
340
			}
341
			
342
			if($file_info['type'] == 'file' and isset($file_info['extension']) and in_array($file_info['extension'], $this->backup_archive_extensions))
343
				$backup_files[$file_info['path']] = $file_info;
344
		}
345
		
346
		foreach($backup_files as $key=>$file_info)
347
		{

restore/xcloner_restore.php 1 location

@@ 711-733 (lines=23) @@
708
		$backup_files = array();
709
		$parents = array();
710
		
711
		foreach($list as $file_info)
712
		{
713
			$data = array();
714
			
715
			if(isset($file_info['extension']) and $file_info['extension'] == "csv")
716
			{
717
				$lines = explode(PHP_EOL, $this->filesystem->read($file_info['path']));
718
				foreach($lines as $line)
719
					if($line)
720
					{
721
						$data = str_getcsv($line);
722
						if(is_array($data)){
723
							$parents[$data[0]] = $file_info['path'];
724
							$file_info['childs'][] = $data;
725
							$file_info['size'] += $data[2];
726
						}
727
					}
728
						
729
			}
730
			
731
			if($file_info['type'] == 'file' and isset($file_info['extension']) and in_array($file_info['extension'], $this->backup_archive_extensions))
732
				$backup_files[$file_info['path']] = $file_info;
733
		}
734
		
735
		$new_list = array();
736