Code Duplication    Length = 12-12 lines in 3 locations

main/admin/skills_import.php 1 location

@@ 268-279 (lines=12) @@
265
$result_xml = '';
266
$i = 0;
267
$count_fields = count($extra_fields);
268
if ($count_fields > 0) {
269
	foreach ($extra_fields as $extra) {
270
		$list[] = $extra[1];
271
		$list_reponse[] = 'xxx';
272
		$spaces = '        ';
273
		$result_xml .= $spaces.'<'.$extra[1].'>xxx</'.$extra[1].'>';
274
		if ($i != $count_fields - 1) {
275
			$result_xml .= '<br/>';
276
		}
277
		$i++;
278
	}
279
}
280
?>
281
<p><?php echo get_lang('CSVMustLookLike').' ('.get_lang('MandatoryFields').')'; ?> :</p>
282

main/admin/user_import.php 1 location

@@ 488-499 (lines=12) @@
485
$result_xml = '';
486
$i = 0;
487
$count_fields = count($extra_fields);
488
if ($count_fields > 0) {
489
    foreach ($extra_fields as $extra) {
490
        $list[] = $extra[1];
491
        $list_reponse[] = 'xxx';
492
        $spaces = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
493
        $result_xml .= $spaces.'&lt;'.$extra[1].'&gt;xxx&lt;/'.$extra[1].'&gt;';
494
        if ($i != $count_fields - 1) {
495
            $result_xml .= '<br/>';
496
        }
497
        $i++;
498
    }
499
}
500
501
?>
502
    <p><?php echo get_lang('CSVMustLookLike').' ('.get_lang('MandatoryFields').')'; ?> :</p>

main/admin/user_update_import.php 1 location

@@ 444-455 (lines=12) @@
441
$result_xml = '';
442
$i = 0;
443
$count_fields = count($extra_fields);
444
if ($count_fields > 0) {
445
    foreach ($extra_fields as $extra) {
446
        $list[] = $extra[1];
447
        $list_reponse[] = 'xxx';
448
        $spaces = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
449
        $result_xml .= $spaces.'&lt;'.$extra[1].'&gt;xxx&lt;/'.$extra[1].'&gt;';
450
        if ($i != $count_fields - 1) {
451
            $result_xml .= '<br/>';
452
        }
453
        $i++;
454
    }
455
}
456
457
?>
458
<p><?php echo get_lang('CSVMustLookLike').' ('.get_lang('MandatoryFields').')'; ?> :</p>