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

@@ 499-509 (lines=11) @@
496
	
497
	}
498
	
499
	function friendly_error_type($type) {
500
	    static $levels=null;
501
	    if ($levels===null) {
502
	        $levels=[];
503
	        foreach (get_defined_constants() as $key=>$value) {
504
	            if (strpos($key,'E_')!==0) {continue;}
505
					$levels[$value]= $key; //substr($key,2);
506
	        }
507
	    }
508
	    return (isset($levels[$type]) ? $levels[$type] : "Error #{$type}");
509
	}
510
		
511
	private function define_ajax_hooks()
512
	{