Code Duplication    Length = 10-10 lines in 2 locations

main/exercise/hotpotatoes_exercise_result.class.php 1 location

@@ 268-277 (lines=10) @@
265
            }
266
		}
267
268
		if ($export_user_fields) {
269
			//show user fields section with a big th colspan that spans over all fields
270
			$extra_user_fields = UserManager::get_extra_fields(0,1000,5,'ASC',false, 1);
271
272
			//show the fields names for user fields
273
			foreach ($extra_user_fields as $field) {
274
                $worksheet->setCellValueByColumnAndRow(
275
                    $column,
276
                    $line,
277
                    api_html_entity_decode(
278
                        strip_tags($field[3]),
279
                        ENT_QUOTES,
280
                        $charset

main/exercise/exercise_result.class.php 1 location

@@ 489-498 (lines=10) @@
486
        $worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Groups'));
487
        $column++;
488
489
        if ($export_user_fields) {
490
            //show user fields section with a big th colspan that spans over all fields
491
            $extra_user_fields = UserManager::get_extra_fields(
492
                0,
493
                1000,
494
                5,
495
                'ASC',
496
                false,
497
                1
498
            );
499
500
            //show the fields names for user fields
501
            foreach ($extra_user_fields as $field) {