Code Duplication    Length = 3-3 lines in 2 locations

htdocs/modules/publisher/admin/category.php 1 location

@@ 253-255 (lines=3) @@
250
251
    $description = $categoryObj->getVar('description');
252
    if (!XoopsLocale::isMultiByte()) {
253
        if (strlen($description) >= 100) {
254
            $description = substr($description, 0, (100 - 1)) . "...";
255
        }
256
    }
257
    $modify = "<a href='category.php?op=mod&amp;categoryid=" . $categoryObj->getVar('categoryid') . "&amp;parentid=" . $categoryObj->getVar('parentid') . "'><img src='" . PUBLISHER_URL . "/images/links/edit.gif' title='" . _AM_PUBLISHER_EDITCOL . "' alt='" . _AM_PUBLISHER_EDITCOL . "' /></a>";
258
    $delete = "<a href='category.php?op=del&amp;categoryid=" . $categoryObj->getVar('categoryid') . "'><img src='" . PUBLISHER_URL . "/images/links/delete.png' title='" . _AM_PUBLISHER_DELETECOL . "' alt='" . _AM_PUBLISHER_DELETECOL . "' /></a>";

htdocs/xoops_lib/Xoops/Form/Element.php 1 location

@@ 94-96 (lines=3) @@
91
        // generate id from name if not already set
92
        if (!$this->has('id')) {
93
            $id = $this->get('name');
94
            if (substr($id, -2) === '[]') {
95
                $id = substr($id, 0, strlen($id)-2);
96
            }
97
            $this->set('id', $id);
98
        }
99
        return parent::renderAttributeString();