Code Duplication    Length = 6-6 lines in 2 locations

application/modules/comments/commentsapi.php 2 locations

@@ 240-245 (lines=6) @@
237
            }
238
        }
239
240
        if (strstr($url, '/image/')) {
241
            $url = explode(DS, $url);
242
            $url = $url[count($url) - 1];
243
244
            return $url;
245
        }
246
        if (strstr($url, '/album/')) {
247
            $url = explode(DS, $url);
248
            $url = $url[count($url) - 1];
@@ 246-251 (lines=6) @@
243
244
            return $url;
245
        }
246
        if (strstr($url, '/album/')) {
247
            $url = explode(DS, $url);
248
            $url = $url[count($url) - 1];
249
250
            return $url;
251
        }
252
253
        if ($url == site_url()) {
254
            $id = $this->db->select('main_page_id, comments_status')