Code Duplication    Length = 9-11 lines in 2 locations

class/APCal.php 2 locations

@@ 1966-1974 (lines=9) @@
1963
1964
                // drawing the result of plugins
1965
                if (!empty($plugin_returns[$date])) {
1966
                    foreach ($plugin_returns[$date] as $item) {
1967
                        $event_str .= "
1968
                  <tr>
1969
                    <td></td>
1970
                    <td valign='top'>
1971
                      <span style='font-size: x-small; '><a href='{$item['link']}' class='$summary_class'><img src='$this->images_url/{$item['dotgif']}' alt='{$item['title']}>' />{$item['title']}</a></span>
1972
                    </td>
1973
                  </tr>\n";
1974
                    }
1975
                }
1976
1977
                if ($this->insertable) {
@@ 2184-2194 (lines=11) @@
2181
2182
            // drawing the result of plugins
2183
            if (!empty($plugin_returns[$this->date])) {
2184
                foreach ($plugin_returns[$this->date] as $item) {
2185
                    $ret .= "
2186
           <tr>
2187
             <td></td>
2188
             <td valign='top'>
2189
               <font size='3'><a href='{$item['link']}' class='$summary_class'><img src='$this->images_url/{$item['dotgif']}' alt='{$item['title']}>' />{$item['title']}</a></font><br>
2190
               <span style='font-size: x-small; '>{$item['description']}</span><br>
2191
               &nbsp;
2192
             </td>
2193
           </tr>\n";
2194
                }
2195
            }
2196
2197
            // ͽ����ɲáʱ�ɮ���������