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

modules/editor/editor.controller.php 1 location

@@ 426-468 (lines=43) @@
423
			$xml_info = $oEditorModel->getComponentXmlInfo($component_name);
424
			$xml_info->enabled = $component->enabled;
425
426
			if($component->extra_vars)
427
			{
428
				$extra_vars = unserialize($component->extra_vars);
429
				if($extra_vars->target_group)
430
				{
431
					$xml_info->target_group = $extra_vars->target_group;
432
				}
433
434
				if($extra_vars->mid_list && count($extra_vars->mid_list))
435
				{
436
					$xml_info->mid_list = $extra_vars->mid_list;
437
				}
438
				/*
439
				// Permisshin check if you are granted
440
				if($extra_vars->target_group) {
441
				// Stop using if not logged-in
442
				if(!$is_logged) continue;
443
				// Compare a target group with the current logged-in user group
444
				$target_group = $extra_vars->target_group;
445
				unset($extra_vars->target_group);
446
447
				$is_granted = false;
448
				foreach($group_list as $group_srl) {
449
				if(in_array($group_srl, $target_group)) {
450
				$is_granted = true;
451
				break;
452
				}
453
				}
454
				if(!$is_granted) continue;
455
				}
456
				// Check if the target module exists
457
				if($extra_vars->mid_list && count($extra_vars->mid_list) && Context::get('mid')) {
458
				if(!in_array(Context::get('mid'), $extra_vars->mid_list)) continue;
459
				}*/
460
				// Check the configuration of the editor component
461
				if($xml_info->extra_vars)
462
				{
463
					foreach($xml_info->extra_vars as $key => $val)
464
					{
465
						$xml_info->extra_vars->{$key}->value = $extra_vars->{$key};
466
					}
467
				}
468
			}
469
470
			$component_list->{$component_name} = $xml_info;
471
			// Get buttons, icons, images

modules/editor/editor.model.php 1 location

@@ 721-744 (lines=24) @@
718
719
		$xml_info->mid_list = array();
720
721
		if($component->extra_vars)
722
		{
723
			$extra_vars = unserialize($component->extra_vars);
724
725
			if($extra_vars->target_group)
726
			{
727
				$xml_info->target_group = $extra_vars->target_group;
728
				unset($extra_vars->target_group);
729
			}
730
731
			if($extra_vars->mid_list)
732
			{
733
				$xml_info->mid_list = $extra_vars->mid_list;
734
				unset($extra_vars->mid_list);
735
			}
736
737
			if($xml_info->extra_vars)
738
			{
739
				foreach($xml_info->extra_vars as $key => $val)
740
				{
741
					$xml_info->extra_vars->{$key}->value = $extra_vars->{$key};
742
				}
743
			}
744
		}
745
746
		return $xml_info;
747
	}