mambax7/extgallery

View on GitHub
admin/public-category.php

Summary

Maintainability
A
0 mins
Test Coverage

The CASE body must start on the line following the statement
Open

    case 'delete':
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

The CASE body must start on the line following the statement
Open

    case 'modify':
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

The DEFAULT body must start on the line following the statement
Open

            default:
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

The CASE body must start on the line following the statement
Open

    case 'create':
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

The CASE body must start on the line following the statement
Open

            case 'default':
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

The CASE body must start on the line following the statement
Open

            case 'enreg':
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

The CASE body must start on the line following the statement
Open

            case 'enreg':
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

The CASE body must start on the line following the statement
Open

    case 'default':
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 195 characters
Open

                        $photoSelect .= '<option value="' . $photo->getVar('photo_id') . '" selected>' . $photo->getVar('photo_title') . ' (' . $photo->getVar('photo_name') . ')</option>' . "\n";
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 138 characters
Open

                $form->addElement(new \XoopsFormText(_AM_EXTGALLERY_NAME, 'cat_name', '70', '255', $cat->getVar('cat_name', 'e')), false);
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 148 characters
Open

                $photoSelect = "\n" . '<select size="1" name="photo_id" id="photo_id" onChange="ChangeThumb();" onkeydown="ChangeThumb();">' . "\n";
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 133 characters
Open

        $form = new \XoopsThemeForm(_AM_EXTGALLERY_MODDELETE_PUBLICCAT, 'modify_cat', 'public-category.php?op=modify', 'post', true);
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 123 characters
Open

        $form->addElement(new \XoopsFormLabel(_AM_EXTGALLERY_PARENT_CAT, $catHandler->getSelect('cat_pid', 'leaf', true)));
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 136 characters
Open

                $form->addElement(new \XoopsFormText(_AM_EXTGALLERY_WEIGHT, 'cat_weight', '4', '4', $cat->getVar('cat_weight')), false);
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 133 characters
Open

        $form->addElement(new \XoopsFormLabel(_AM_EXTGALLERY_CATEGORY, $catHandler->getSelect('cat_id', false, false, 0, '', true)));
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 156 characters
Open

                $form->addElement(new \XoopsFormLabel(_AM_EXTGALLERY_PARENT_CAT, $catHandler->getSelect('cat_pid', 'leaf', true, $cat->getVar('cat_pid'))));
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 125 characters
Open

                            document.getElementById('thumb').src = thumb[formSelect.options[formSelect.selectedIndex].value];
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 186 characters
Open

                        $photoSelect .= '<option value="' . $photo->getVar('photo_id') . '">' . $photo->getVar('photo_title') . ' (' . $photo->getVar('photo_name') . ')</option>' . "\n";
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 134 characters
Open

                $form->addElement(new \XoopsFormDhtmlTextArea(_AM_EXTGALLERY_DESC, 'cat_desc', $cat->getVar('cat_desc', 'e')), false);
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 128 characters
Open

        $form = new \XoopsThemeForm(_AM_EXTGALLERY_ADD_PUBLIC_CAT, 'create_cat', 'public-category.php?op=create', 'post', true);
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 122 characters
Open

                        $url = XOOPS_URL . '/uploads/extgallery/public-photo/thumb/thumb_' . $photo->getVar('photo_name');
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 136 characters
Open

                $form = new \XoopsThemeForm(_AM_EXTGALLERY_MOD_PUBLIC_CAT, 'create_cat', 'public-category.php?op=modify', 'post', true);
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 169 characters
Open

                $elementTrayThumb->addElement(new \XoopsFormLabel('', $photoSelect . "<img style=\"float:left; margin-top:5px;\" id=\"thumb\" src=\"$selectedPhoto\">"));
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 129 characters
Open

                $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/extgallery/templates/admin/extgallery_admin_public_category.tpl');
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 153 characters
Open

                    xoops_confirm(['cat_id' => $_POST['cat_id'], 'step' => 'enreg'], 'public-category.php?op=delete', _AM_EXTGALLERY_DELETE_CAT_CONFIRM);
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 145 characters
Open

                $form->addElement(new \XoopsFormText(_AM_EXTGALLERY_CAT_IMG, 'cat_imgurl', '70', '150', $cat->getVar('cat_imgurl', 'e')), false);
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

Line exceeds 120 characters; contains 121 characters
Open

        $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/extgallery/templates/admin/extgallery_admin_public_category.tpl');
Severity: Minor
Found in admin/public-category.php by phpcodesniffer

There are no issues that match your filters.

Category
Status