Code Duplication    Length = 4-4 lines in 2 locations

class/APCal.php 2 locations

@@ 1886-1889 (lines=4) @@
1883
                            $time_part     = "             <img border='0' src='$this->images_url/dot_allday.gif' />";
1884
                            $summary_class = 'calsummary_allday';
1885
                        }
1886
                    } else {
1887
                        $time_part     = $this->get_time_desc_for_a_day($event, $tzoffset, $bottomtime_of_day - $this->day_start, true, true);
1888
                        $summary_class = 'calsummary';
1889
                    }
1890
1891
                    $event_str .= "
1892
                  <tr>
@@ 1939-1942 (lines=4) @@
1936
                        if ($event->allday) {
1937
                            $time_part     = "             <img border='0' src='$this->images_url/dot_notadmit.gif' />";
1938
                            $summary_class = 'calsummary_allday';
1939
                        } else {
1940
                            $time_part     = $this->get_time_desc_for_a_day($event, $tzoffset, $bottomtime_of_day - $this->day_start, true, false);
1941
                            $summary_class = 'calsummary';
1942
                        }
1943
1944
                        $event_str .= "
1945
                      <tr>