Code Duplication    Length = 5-5 lines in 2 locations

class/profile.php 1 location

@@ 82-86 (lines=5) @@
79
                $country         = $r['birthplace_country'];
80
                $rank            = $GLOBALS['xoopsUser']->rank();
81
                $rank_title      = $rank['title'];
82
                if (isset($rank['image'])) {
83
                    $rank_image = "<img class='center' src='" . XOOPS_UPLOAD_URL . '/' . $rank['image'] . "'>";
84
                } else {
85
                    $rank_image = '';
86
                }
87
                $commentsrating = "<img src='" . $helper->url('assets/images/like.png') . "' height='10px' width='10px'" . '> ' . $usersratedplus
88
                                . " <img src='" . $helper->url('assets/images/dislike.png') . "' height='10px' width='10px'" . '> ' . $usersratedminus;
89
                $lastlogin      = $GLOBALS['xoopsUser']->getVar('last_login');

class/SmallWorldProfile.php 1 location

@@ 76-80 (lines=5) @@
73
                $country         = $r['birthplace_country'];
74
                $rank            = $user->rank();
75
                $rank_title      = $rank['title'];
76
                if (isset($rank['image'])) {
77
                    $rank_image = "<img align='center' src='" . XOOPS_UPLOAD_URL . '/' . $rank['image'] . "'>";
78
                } else {
79
                    $rank_image = '';
80
                }
81
                $commentsrating = "<img src='" . XOOPS_URL . "/modules/smallworld/assets/images/like.png' height='10px' width='10px'" . '> ' . $usersratedplus;
82
                $commentsrating .= " <img src='" . XOOPS_URL . "/modules/smallworld/assets/images/dislike.png' height='10px' width='10px'" . '> ' . $usersratedminus;
83
                $lastlogin      = $user->getVar('last_login');