Code Duplication    Length = 8-8 lines in 2 locations

main/mySpace/current_courses.php 1 location

@@ 227-234 (lines=8) @@
224
		$column++;
225
	}
226
	$line++;
227
	foreach ($array as $row) {
228
		$column = 0;
229
		foreach ($row as $item) {
230
			$worksheet->SetCellValueByColumnAndRow($line, $column, html_entity_decode(strip_tags($item)));
231
			$column++;
232
		}
233
		$line++;
234
	}
235
	$line++;
236
237
    $file = api_get_path(SYS_ARCHIVE_PATH).api_replace_dangerous_char($filename);

main/tracking/exams.php 1 location

@@ 435-442 (lines=8) @@
432
        $column++;
433
434
        $line++;
435
        foreach ($array as $row) {
436
            $column = 0;
437
            foreach ($row as $item) {
438
                $worksheet->SetCellValueByColumnAndRow($line, $column, html_entity_decode(strip_tags($item)));
439
                $column++;
440
            }
441
            $line++;
442
        }
443
        $line++;
444
    } else {
445
        $worksheet->SetCellValueByColumnAndRow($line,$column,get_lang('Exercises'));