Code Duplication    Length = 3-3 lines in 2 locations

class/PublicWallUpdates.php 1 location

@@ 495-497 (lines=3) @@
492
                $wc['vote_up']         = $this->countVotesCom('com', 'up', $cdata['msg_id_fk'], $cdata['com_id']);
493
                $wc['vote_down']       = $this->countVotesCom('com', 'down', $cdata['msg_id_fk'], $cdata['com_id']);
494
495
                if (Constants::PROFILE_HAS_BOTH == $frC[0] || 1 == $USC['comments']) {
496
                    $GLOBALS['xoopsTpl']->append('comm', $wc);
497
                }
498
            }
499
        }
500
    }

class/WallUpdates.php 1 location

@@ 554-556 (lines=3) @@
551
                $wc['vote_up']         = $this->countVotesCom('com', 'up', $cdata['msg_id_fk'], $cdata['com_id']);
552
                $wc['vote_down']       = $this->countVotesCom('com', 'down', $cdata['msg_id_fk'], $cdata['com_id']);
553
554
                if (Constants::PROFILE_HAS_BOTH == $frC[0] || 1 == $USC['comments']) {
555
                    $GLOBALS['xoopsTpl']->append('comm', $wc);
556
                }
557
            }
558
        }
559
    }