Code Duplication    Length = 11-11 lines in 2 locations

main/exercise/hotpotatoes_exercise_result.class.php 1 location

@@ 255-265 (lines=11) @@
252
		if ($with_column_user) {
253
		    $worksheet->setCellValueByColumnAndRow($column, $line, get_lang('Email'));
254
		    $column++;
255
            if (api_is_western_name_order()) {
256
    			$worksheet->setCellValueByColumnAndRow($column, $line, get_lang('FirstName'));
257
    			$column++;
258
                $worksheet->setCellValueByColumnAndRow($column, $line, get_lang('LastName'));
259
                $column++;
260
            } else {
261
                $worksheet->setCellValueByColumnAndRow($column, $line, get_lang('LastName'));
262
                $column++;
263
                $worksheet->setCellValueByColumnAndRow($column, $line, get_lang('FirstName'));
264
                $column++;
265
            }
266
		}
267
268
		if ($export_user_fields) {

main/exercise/exercise_result.class.php 1 location

@@ 466-476 (lines=11) @@
463
        $officialCodeInList = api_get_setting('show_official_code_exercise_result_list');
464
465
        if ($with_column_user) {
466
            if (api_is_western_name_order()) {
467
                $worksheet->setCellValueByColumnAndRow($column, $line, get_lang('FirstName'));
468
                $column++;
469
                $worksheet->setCellValueByColumnAndRow($column, $line, get_lang('LastName'));
470
                $column++;
471
            } else {
472
                $worksheet->setCellValueByColumnAndRow($column, $line, get_lang('LastName'));
473
                $column++;
474
                $worksheet->setCellValueByColumnAndRow($column, $line, get_lang('FirstName'));
475
                $column++;
476
            }
477
478
            if ($officialCodeInList === 'true') {
479
                $worksheet->setCellValueByColumnAndRow($column, $line, get_lang('OfficialCode'));