Code Duplication    Length = 5-5 lines in 2 locations

admin/actions/categories.php 1 location

@@ 185-189 (lines=5) @@
182
        }
183
184
        // META Data
185
        if ($manual_meta) {
186
            $sform->addElement(new XoopsFormText(_AM_OLEDRION_META_KEYWORDS, 'cat_metakeywords', 50, 255, $item->getVar('cat_metakeywords', 'e')), false);
187
            $sform->addElement(new XoopsFormText(_AM_OLEDRION_META_DESCRIPTION, 'cat_metadescription', 50, 255, $item->getVar('cat_metadescription', 'e')), false);
188
            $sform->addElement(new XoopsFormText(_AM_OLEDRION_META_PAGETITLE, 'cat_metatitle', 50, 255, $item->getVar('cat_metatitle', 'e')), false);
189
        }
190
191
        $button_tray = new XoopsFormElementTray('', '');
192
        $submit_btn  = new XoopsFormButton('', 'post', $label_submit, 'submit');

admin/actions/products.php 1 location

@@ 590-594 (lines=5) @@
587
        }
588
589
        // META Data
590
        if ($manual_meta) {
591
            $sform->addElement(new XoopsFormText(_AM_OLEDRION_META_KEYWORDS, 'product_metakeywords', 50, 255, $item->getVar('product_metakeywords', 'e')), false);
592
            $sform->addElement(new XoopsFormText(_AM_OLEDRION_META_DESCRIPTION, 'product_metadescription', 50, 255, $item->getVar('product_metadescription', 'e')), false);
593
            $sform->addElement(new XoopsFormText(_AM_OLEDRION_META_PAGETITLE, 'product_metatitle', 50, 255, $item->getVar('product_metatitle', 'e')), false);
594
        }
595
        // Fichier attaché
596
        if ($action === 'edit' && trim($item->getVar('product_attachment')) != ''
597
            && file_exists(XOOPS_UPLOAD_PATH . '/' . trim($item->getVar('product_attachment')))) {