Code Duplication    Length = 8-8 lines in 2 locations

htdocs/themes/xbootstrap/modules/publisher/xoops_and_module_changes/modules/publisher/class/item.php 2 locations

@@ 163-170 (lines=8) @@
160
        if (!empty($stripTags)) {
161
            $ret = strip_tags($ret, $stripTags);
162
        }
163
        if ($maxLength != 0) {
164
            if (!XOOPS_USE_MULTIBYTES) {
165
                if (strlen($ret) >= $maxLength) {
166
                    //$ret = publisher_substr($ret , 0, $maxLength);
167
                    $ret = publisher_truncateTagSafe($ret, $maxLength, $etc = '...', $break_words = false);
168
                }
169
            }
170
        }
171
172
        return $ret;
173
    }
@@ 265-272 (lines=8) @@
262
        if (!empty($stripTags)) {
263
            $ret = strip_tags($ret, $stripTags);
264
        }
265
        if ($maxLength != 0) {
266
            if (!XOOPS_USE_MULTIBYTES) {
267
                if (strlen($ret) >= $maxLength) {
268
                    //$ret = publisher_substr($ret , 0, $maxLength);
269
                    $ret = publisher_truncateTagSafe($ret, $maxLength, $etc = '...', $break_words = false);
270
                }
271
            }
272
        }
273
274
        return $ret;
275
    }