Code Duplication    Length = 15-15 lines in 2 locations

htdocs/class/commentrenderer.php 2 locations

@@ 251-265 (lines=15) @@
248
            // End edit by voltan
249
            $current_prefix .= $prefix;
250
        }
251
        if (isset($thread[$key]['child']) && !empty($thread[$key]['child'])) {
252
            ++$depth;
253
            foreach ($thread[$key]['child'] as $childkey) {
254
                if (!$admin_view && $thread[$childkey]['obj']->getVar('com_status') != XOOPS_COMMENT_ACTIVE) {
255
                    // skip this comment if it is not active and continue on processing its child comments instead
256
                    if (isset($thread[$childkey]['child']) && !empty($thread[$childkey]['child'])) {
257
                        foreach ($thread[$childkey]['child'] as $childchildkey) {
258
                            $this->_renderThreadReplies($thread, $childchildkey, $replies, $prefix, $admin_view, $depth);
259
                        }
260
                    }
261
                } else {
262
                    $this->_renderThreadReplies($thread, $childkey, $replies, $prefix, $admin_view, $depth, $current_prefix);
263
                }
264
            }
265
        }
266
    }
267
268
    /**
@@ 364-378 (lines=15) @@
361
            // End edit by voltan
362
            $prefix += 25;
363
        }
364
        if (isset($thread[$key]['child']) && !empty($thread[$key]['child'])) {
365
            ++$depth;
366
            foreach ($thread[$key]['child'] as $childkey) {
367
                if (!$admin_view && $thread[$childkey]['obj']->getVar('com_status') != XOOPS_COMMENT_ACTIVE) {
368
                    // skip this comment if it is not active and continue on processing its child comments instead
369
                    if (isset($thread[$childkey]['child']) && !empty($thread[$childkey]['child'])) {
370
                        foreach ($thread[$childkey]['child'] as $childchildkey) {
371
                            $this->_renderNestReplies($thread, $childchildkey, $replies, $prefix, $admin_view, $depth);
372
                        }
373
                    }
374
                } else {
375
                    $this->_renderNestReplies($thread, $childkey, $replies, $prefix, $admin_view, $depth);
376
                }
377
            }
378
        }
379
    }
380
381
    /**