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

restore/xcloner_restore.php 1 location

@@ 160-170 (lines=11) @@
157
	
158
	}
159
	
160
	private function friendly_error_type($type) {
161
	    static $levels=null;
162
	    if ($levels===null) {
163
	        $levels=[];
164
	        foreach (get_defined_constants() as $key=>$value) {
165
	            if (strpos($key,'E_')!==0) {continue;}
166
					$levels[$value]= $key; //substr($key,2);
167
	        }
168
	    }
169
	    return (isset($levels[$type]) ? $levels[$type] : "Error #{$type}");
170
	}
171
	
172
	public function get_logger_filename()
173
	{

includes/class-xcloner.php 1 location

@@ 489-499 (lines=11) @@
486
	
487
	}
488
	
489
	function friendly_error_type($type) {
490
	    static $levels=null;
491
	    if ($levels===null) {
492
	        $levels=[];
493
	        foreach (get_defined_constants() as $key=>$value) {
494
	            if (strpos($key,'E_')!==0) {continue;}
495
					$levels[$value]= $key; //substr($key,2);
496
	        }
497
	    }
498
	    return (isset($levels[$type]) ? $levels[$type] : "Error #{$type}");
499
	}
500
		
501
	private function define_ajax_hooks()
502
	{