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

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
		

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

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