Code Duplication    Length = 5-5 lines in 2 locations

class/assessment_provas.php 2 locations

@@ 548-552 (lines=5) @@
545
            $total_segundos = ($total_segundos % (60 * 60 * 24 * _AM_ASSESSMENT_DAYS_PER_MONTH));
546
            $comecou        = true;
547
        }
548
        if (($inicio == 'd') || ($comecou == true)) {
549
            $array['dias']  = floor($total_segundos / (60 * 60 * 24));
550
            $total_segundos = ($total_segundos % (60 * 60 * 24));
551
            $comecou        = true;
552
        }
553
        if (($inicio == 'H') || ($comecou == true)) {
554
            $array['horas'] = floor($total_segundos / (60 * 60));
555
            $total_segundos = ($total_segundos % (60 * 60));
@@ 553-557 (lines=5) @@
550
            $total_segundos = ($total_segundos % (60 * 60 * 24));
551
            $comecou        = true;
552
        }
553
        if (($inicio == 'H') || ($comecou == true)) {
554
            $array['horas'] = floor($total_segundos / (60 * 60));
555
            $total_segundos = ($total_segundos % (60 * 60));
556
            $comecou        = true;
557
        }
558
        if (($inicio == 'i') || ($comecou == true)) {
559
            $array['minutos'] = floor($total_segundos / 60);
560
            $total_segundos   = ($total_segundos % 60);