Code Duplication    Length = 4-4 lines in 2 locations

userprofile.php 2 locations

@@ 73-76 (lines=4) @@
70
        // Check status for relationship
71
        $fr = $check->friendcheck($yourid, $id);
72
        switch ($fr[0]) {
73
            case 0:
74
                $friendship_text = _SMALLWORLD_JSON_ADDFR_TEXT;
75
                $GLOBALS['xoopsTpl']->assign('isuserafriend', $helper->isUserAdmin() ? 'yes' : 'no');
76
                break;
77
            case 1:
78
                $friendship_text = _SMALLWORLD_JSON_CANCELFR_TEXT;
79
                $GLOBALS['xoopsTpl']->assign('isuserafriend', $helper->isUserAdmin() ? 'yes' : 'no');
@@ 77-80 (lines=4) @@
74
                $friendship_text = _SMALLWORLD_JSON_ADDFR_TEXT;
75
                $GLOBALS['xoopsTpl']->assign('isuserafriend', $helper->isUserAdmin() ? 'yes' : 'no');
76
                break;
77
            case 1:
78
                $friendship_text = _SMALLWORLD_JSON_CANCELFR_TEXT;
79
                $GLOBALS['xoopsTpl']->assign('isuserafriend', $helper->isUserAdmin() ? 'yes' : 'no');
80
                break;
81
            case 2:
82
                $friendship_text = _SMALLWORLD_JSON_REMOVEFR_TEXT;
83
                $GLOBALS['xoopsTpl']->assign('isuserafriend', 'yes');