Code Duplication    Length = 4-4 lines in 2 locations

application/modules/comments/comments.php 1 location

@@ 248-251 (lines=4) @@
245
246
        // Read comments template
247
        // Set page id for comments form
248
        if ($comments != FALSE) {
249
            ($hook = get_hook('comments_store_cache')) ? eval($hook) : NULL;
250
            $this->cache->store('comments_' . $item_id . $this->module, $comments, $this->cache_ttl, 'comments');
251
        }
252
        //}
253
254
        if (is_array($comments)) {

application/modules/comments/commentsapi.php 1 location

@@ 153-156 (lines=4) @@
150
151
        // Read comments template
152
        // Set page id for comments form
153
        if ($comments != FALSE) {
154
            ($hook = get_hook('comments_store_cache')) ? eval($hook) : NULL;
155
            $this->cache->store('comments_' . $item_id . $this->module, $comments, $this->cache_ttl, 'comments');
156
        }
157
158
        if ($comments != null) {
159
            $comments_count = count($comments);