Code Duplication    Length = 7-8 lines in 2 locations

class/APCal.php 2 locations

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