Code Duplication    Length = 7-8 lines in 2 locations

class/APCal.php 2 locations

@@ 4981-4987 (lines=7) @@
4978
            // UNTIL �� COUNT ��ξ������ COUNT ͥ��
4979
            if (isset($COUNT) && $COUNT > 0) {
4980
                $ret_terminator = sprintf(_APCAL_RR_COUNT, $COUNT);
4981
            } elseif (isset($UNTIL)) {
4982
                // UNTIL �ϡ�������Ǥ����̵���Ǹ��ʤ�
4983
                $year           = substr($UNTIL, 0, 4);
4984
                $month          = substr($UNTIL, 4, 2);
4985
                $date           = substr($UNTIL, 6, 2);
4986
                $ret_terminator = sprintf(_APCAL_RR_UNTIL, "$year-$month-$date");
4987
            }
4988
4989
            return "$ret_freq $ret_day $ret_terminator";
4990
        }
@@ 5103-5110 (lines=8) @@
5100
                if (isset($COUNT) && $COUNT > 0) {
5101
                    $count_init    = $COUNT;
5102
                    $count_checked = 'checked';
5103
                } elseif (isset($UNTIL)) {
5104
                    // UNTIL �ϡ�����ǡ����Ǥ����̵���Ǹ��ʤ�
5105
                    $year          = substr($UNTIL, 0, 4);
5106
                    $month         = substr($UNTIL, 4, 2);
5107
                    $date          = substr($UNTIL, 6, 2);
5108
                    $until_init    = "$year-$month-$date";
5109
                    $until_checked = 'checked';
5110
                } else {
5111
                    // ξ�ԤȤ���꤬�ʤ���С���λ���ʤ�
5112
                    $noterm_checked = 'checked';
5113
                }