Code Duplication    Length = 8-8 lines in 5 locations

class/SmallWorldProfile.php 5 locations

@@ 124-131 (lines=8) @@
121
                    $status = _SMALLWORLD_ISSINGLE;
122
                    $spouse = '';
123
                }
124
                if (3 == $relationship) {
125
                    $status = _SMALLWORLD_INRELATIONSHIP;
126
                    if ($spouseExists > 0) {
127
                        $spouse = "<a href='" . XOOPS_URL . '/modules/smallworld/userprofile.php?username=' . $r['partner'] . "' target='_self'>" . $r['partner'] . '</a>';
128
                    } else {
129
                        $spouse = $r['partner'];
130
                    }
131
                }
132
                if (0 == $relationship) {
133
                    $status = _SMALLWORLD_ISMARRIED;
134
                    if ($spouseExists > 0) {
@@ 132-139 (lines=8) @@
129
                        $spouse = $r['partner'];
130
                    }
131
                }
132
                if (0 == $relationship) {
133
                    $status = _SMALLWORLD_ISMARRIED;
134
                    if ($spouseExists > 0) {
135
                        $spouse = "<a href='" . XOOPS_URL . '/modules/smallworld/userprofile.php?username=' . $r['partner'] . "' target='_self'>" . $r['partner'] . '</a>';
136
                    } else {
137
                        $spouse = $r['partner'];
138
                    }
139
                }
140
                if (1 == $relationship) {
141
                    $status = _SMALLWORLD_ISENGAGED;
142
                    if ($spouseExists > 0) {
@@ 140-147 (lines=8) @@
137
                        $spouse = $r['partner'];
138
                    }
139
                }
140
                if (1 == $relationship) {
141
                    $status = _SMALLWORLD_ISENGAGED;
142
                    if ($spouseExists > 0) {
143
                        $spouse = "<a href='" . XOOPS_URL . '/modules/smallworld/userprofile.php?username=' . $r['partner'] . "' target='_self'>" . $r['partner'] . '</a>';
144
                    } else {
145
                        $spouse = $r['partner'];
146
                    }
147
                }
148
                if (5 == $relationship) {
149
                    $status = _SMALLWORLD_ISCOMPLICATED;
150
                    if ($spouseExists > 0) {
@@ 148-155 (lines=8) @@
145
                        $spouse = $r['partner'];
146
                    }
147
                }
148
                if (5 == $relationship) {
149
                    $status = _SMALLWORLD_ISCOMPLICATED;
150
                    if ($spouseExists > 0) {
151
                        $spouse = "<a href='" . XOOPS_URL . '/modules/smallworld/userprofile.php?username=' . $r['partner'] . "' target='_self'>" . $r['partner'] . '</a>';
152
                    } else {
153
                        $spouse = $r['partner'];
154
                    }
155
                }
156
                if (4 == $relationship) {
157
                    $status = _SMALLWORLD_OPENRELATIONSHIP;
158
                    if ($spouseExists > 0) {
@@ 156-163 (lines=8) @@
153
                        $spouse = $r['partner'];
154
                    }
155
                }
156
                if (4 == $relationship) {
157
                    $status = _SMALLWORLD_OPENRELATIONSHIP;
158
                    if ($spouseExists > 0) {
159
                        $spouse = "<a href='" . XOOPS_URL . '/modules/smallworld/userprofile.php?username=' . $r['partner'] . "' target='_self'>" . $r['partner'] . '</a>';
160
                    } else {
161
                        $spouse = $r['partner'];
162
                    }
163
                }
164
165
                //Personal info
166
                $aboutme  = $r['aboutme'];