Code Duplication    Length = 10-11 lines in 2 locations

class/APCal.php 2 locations

@@ 4107-4117 (lines=11) @@
4104
         * @param  bool   $is_over24
4105
         * @return string
4106
         */
4107
        public function get_middle_dhi($time, $is_over24 = false)
4108
        {
4109
            $hour_offset = $is_over24 ? 24 : 0;
4110
4111
            $hour4disp = $this->use24 ? $this->hour_names_24[date('G', $time) + $hour_offset] : $this->hour_names_12[date('G', $time) + $hour_offset];
4112
4113
            return sprintf(_APCAL_FMT_DHI, $this->date_short_names[date('j', $time)], // D
4114
                           $hour4disp, // H
4115
                           date(_APCAL_DTFMT_MINUTE, $time) // I
4116
            );
4117
        }
4118
4119
        // unixtimestamp���顢���ߤθ����ɽ�����줿 HI ������
4120
@@ 4126-4135 (lines=10) @@
4123
         * @param  bool   $is_over24
4124
         * @return string
4125
         */
4126
        public function get_middle_hi($time, $is_over24 = false)
4127
        {
4128
            $hour_offset = $is_over24 ? 24 : 0;
4129
4130
            $hour4disp = $this->use24 ? $this->hour_names_24[date('G', $time) + $hour_offset] : $this->hour_names_12[date('G', $time) + $hour_offset];
4131
4132
            return sprintf(_APCAL_FMT_HI, $hour4disp, // H
4133
                           date(_APCAL_DTFMT_MINUTE, $time) // I
4134
            );
4135
        }
4136
4137
        // Make <option>s for selecting "HOUR" (default_hour must be 0-23)
4138