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

@@ 400-442 (lines=43) @@
397
			$xml_info = $oEditorModel->getComponentXmlInfo($component_name);
398
			$xml_info->enabled = $component->enabled;
399
400
			if($component->extra_vars)
401
			{
402
				$extra_vars = unserialize($component->extra_vars);
403
				if($extra_vars->target_group)
404
				{
405
					$xml_info->target_group = $extra_vars->target_group;
406
				}
407
408
				if($extra_vars->mid_list && count($extra_vars->mid_list))
409
				{
410
					$xml_info->mid_list = $extra_vars->mid_list;
411
				}
412
				/*
413
				// Permisshin check if you are granted
414
				if($extra_vars->target_group) {
415
				// Stop using if not logged-in
416
				if(!$is_logged) continue;
417
				// Compare a target group with the current logged-in user group
418
				$target_group = $extra_vars->target_group;
419
				unset($extra_vars->target_group);
420
421
				$is_granted = false;
422
				foreach($group_list as $group_srl) {
423
				if(in_array($group_srl, $target_group)) {
424
				$is_granted = true;
425
				break;
426
				}
427
				}
428
				if(!$is_granted) continue;
429
				}
430
				// Check if the target module exists
431
				if($extra_vars->mid_list && count($extra_vars->mid_list) && Context::get('mid')) {
432
				if(!in_array(Context::get('mid'), $extra_vars->mid_list)) continue;
433
				}*/
434
				// Check the configuration of the editor component
435
				if($xml_info->extra_vars)
436
				{
437
					foreach($xml_info->extra_vars as $key => $val)
438
					{
439
						$xml_info->extra_vars->{$key}->value = $extra_vars->{$key};
440
					}
441
				}
442
			}
443
444
			$component_list->{$component_name} = $xml_info;
445
			// Get buttons, icons, images

modules/editor/editor.model.php 1 location

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