Code Duplication    Length = 4-4 lines in 3 locations

entry.php 3 locations

@@ 161-164 (lines=4) @@
158
                                              . $term
159
                                              . '</a></b></span>';
160
                            break;
161
                        case 3: //tooltip
162
                            $tooltipdef   = $myts->htmlSpecialChars(xoops_substr(strip_tags($definition), 0, 150));
163
                            $replace_term = '<a class="parser" href="'
164
                                              . $staticURL
165
                                              . '" onMouseover="ddrivetip(\''
166
                                              . $tooltipdef
167
                                              . '\', 300)"; onMouseout=\'hideddrivetip()\'>'
@@ 178-181 (lines=4) @@
175
                                            . $term
176
                                            . '</a>';
177
                            break;
178
                        case 5:// balloon tooltip
179
                            $tooltipdef   = $myts->htmlSpecialChars(xoops_substr(strip_tags($definition), 0, 150));
180
                            $replace_term = '<a class="parser" href="'
181
                                            . $staticURL
182
                                            . '" onMouseover="showToolTip(event,\''
183
                                            . $tooltipdef
184
                                            . '\');return false"; onMouseout=\'hideToolTip()\'>'
@@ 188-191 (lines=4) @@
185
                                            . $term
186
                                            . '</a>';
187
                            break;
188
                        case 6:// shadow tooltip
189
                            $tooltipdef   = $myts->htmlSpecialChars(xoops_substr(strip_tags($definition), 0, 150));
190
                            $replace_term = '<a class="parser" href="'
191
                                            . $staticURL
192
                                            . '" onmouseout="hideTooltip()" onmouseover="showTooltip(event,\''
193
                                            . $tooltipdef
194
                                            . '\')"; >'