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

includes/class-xcloner.php 1 location

@@ 395-405 (lines=11) @@
392
	
393
	}
394
	
395
	function friendly_error_type($type) {
396
	    static $levels=null;
397
	    if ($levels===null) {
398
	        $levels=[];
399
	        foreach (get_defined_constants() as $key=>$value) {
400
	            if (strpos($key,'E_')!==0) {continue;}
401
					$levels[$value]= $key; //substr($key,2);
402
	        }
403
	    }
404
	    return (isset($levels[$type]) ? $levels[$type] : "Error #{$type}");
405
	}
406
		
407
	private function define_ajax_hooks()
408
	{

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
	{