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

@@ 694-717 (lines=24) @@
691
692
		$xml_info->mid_list = array();
693
694
		if($component->extra_vars)
695
		{
696
			$extra_vars = unserialize($component->extra_vars);
697
698
			if($extra_vars->target_group)
699
			{
700
				$xml_info->target_group = $extra_vars->target_group;
701
				unset($extra_vars->target_group);
702
			}
703
704
			if($extra_vars->mid_list)
705
			{
706
				$xml_info->mid_list = $extra_vars->mid_list;
707
				unset($extra_vars->mid_list);
708
			}
709
710
			if($xml_info->extra_vars)
711
			{
712
				foreach($xml_info->extra_vars as $key => $val)
713
				{
714
					$xml_info->extra_vars->{$key}->value = $extra_vars->{$key};
715
				}
716
			}
717
		}
718
719
		return $xml_info;
720
	}