Code Duplication    Length = 8-10 lines in 2 locations

main/exercise/export/scorm/scorm_classes.php 1 location

@@ 516-523 (lines=8) @@
513
				// if the left side of the "matching" has been completely shown
514
				if ($answerId == $nbrAnswers) {
515
					// if there remain answers to be shown on the right side
516
					while (isset($Select[$cpt2])) {
517
						$s.= '<tr>';
518
						$s.= '<td width="60%" colspan="2">&nbsp;</td>';
519
						$s.= '<td width="40%" valign="top">';
520
						$s.= '<b>'.$Select[$cpt2]['Lettre'].'.</b> '.$Select[$cpt2]['Reponse'];
521
						$s.= "</td></tr>";
522
						$cpt2++;
523
					}	// end while()
524
				}  // end if()
525
			}
526
		}

main/exercise/exercise.class.php 1 location

@@ 7478-7487 (lines=10) @@
7475
                        // shown but the right side still has values to show...
7476
                        if (($lines_count - 1) == $num_suggestions) {
7477
                            // if it remains answers to shown at the right side
7478
                            while (isset($select_items[$lines_count])) {
7479
                                $s .= '<tr>
7480
                                      <td colspan="2"></td>
7481
                                      <td valign="top">';
7482
                                $s.='<b>'.$select_items[$lines_count]['letter'].'.</b>';
7483
                                $s .= $select_items[$lines_count]['answer'];
7484
                                $s.="</td>
7485
                                </tr>";
7486
                                $lines_count++;
7487
                            } // end while()
7488
                        }  // end if()
7489
                        $matching_correct_answer++;
7490
                    }