XoopsModules25x/xoopspoll

View on GitHub
admin/utility.php

Summary

Maintainability
A
0 mins
Test Coverage

There must be one USE keyword per declaration
Open

use XoopsModules\Xoopspoll\{
Severity: Minor
Found in admin/utility.php by phpcodesniffer

Line exceeds 120 characters; contains 148 characters
Open

                redirect_header($_SERVER['SCRIPT_NAME'], Constants::REDIRECT_DELAY_MEDIUM, implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
Severity: Minor
Found in admin/utility.php by phpcodesniffer

Line exceeds 120 characters; contains 135 characters
Open

                                    throw new Exception('Could not find options for the ' . $umPollObj->getVar('question') . ' poll.');
Severity: Minor
Found in admin/utility.php by phpcodesniffer

Line exceeds 120 characters; contains 165 characters
Open

                            throw new Exception(sprintf(_AM_XOOPSPOLL_QUESTION_IMPORT_FAILED, $umPollObj->getVar('question'), '<br>' . $umPollObj->getHtmlErrors()));
Severity: Minor
Found in admin/utility.php by phpcodesniffer

Line exceeds 120 characters; contains 165 characters
Open

                                        throw new Exception(sprintf(_AM_XOOPSPOLL_LOG_FAILED, $umPollObj->getVar('question') . '<br>' . $xpLogObj->getHtmlErrors()));
Severity: Minor
Found in admin/utility.php by phpcodesniffer

Line exceeds 120 characters; contains 158 characters
Open

                                throw new Exception(sprintf(_AM_XOOPSPOLL_QUESTION_FAILED, $umPollObj->getVar('question'), '<br>' . $xpObj->getHtmlErrors()));
Severity: Minor
Found in admin/utility.php by phpcodesniffer

Line exceeds 120 characters; contains 201 characters
Open

                                        throw new Exception(sprintf(_AM_XOOPSPOLL_OPTION_FAILED, $umOptObj->getVar('option_text'), $umPollObj->getVar('question'), '<br>' . $xpOptObj->getHtmlErrors()));
Severity: Minor
Found in admin/utility.php by phpcodesniffer

Line exceeds 120 characters; contains 124 characters
Open

                echo "<div class='floatcenter1'>" . xoops_error($e->getMessage(), _AM_XOOPSPOLL_IMPORT_FAILED) . "</div>\n";
Severity: Minor
Found in admin/utility.php by phpcodesniffer

Line exceeds 120 characters; contains 150 characters
Open

                    redirect_header('index.php', Constants::REDIRECT_DELAY_MEDIUM, sprintf(_AM_XOOPSPOLL_IMPORT_SUCCESS, count($allUmfragePollObjs)));
Severity: Minor
Found in admin/utility.php by phpcodesniffer

There are no issues that match your filters.

Category
Status