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

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