Code Duplication    Length = 12-12 lines in 2 locations

admin/adsligh_rsslib.php 2 locations

@@ 177-188 (lines=12) @@
174
175
    foreach ($recents as $article) {
176
        $type = $article['type'];
177
        if ($type == 0) {
178
            if ($opened == true) {
179
                $page .= '</ul>';
180
                $opened = false;
181
            }
182
            $page .= '<b>';
183
        } else {
184
            if ($opened == false) {
185
                $page .= '<ul>';
186
                $opened = true;
187
            }
188
        }
189
        $title = $article['title'];
190
        $link  = $article['link'];
191
        $page .= "<tr class=\"even\"><td width=\"300\"><img src=\"../assets/images/admin/info_button.png\" border=0 /> <a href=\"$link\">$title</a><br>";
@@ 234-245 (lines=12) @@
231
232
    foreach ($recents as $article) {
233
        $type = $article['type'];
234
        if ($type == 0) {
235
            if ($opened == true) {
236
                $page .= '</ul>';
237
                $opened = false;
238
            }
239
            $page .= '<b>';
240
        } else {
241
            if ($opened == false) {
242
                $page .= '<ul>';
243
                $opened = true;
244
            }
245
        }
246
247
        $title = $article['title'];
248
        $link  = $article['link'];