ImpressCMS/impresscms

View on GitHub
htdocs/include/commentform.inc.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Dhtmltextarea(_CM_MESSAGE, 'message', $message, 10, 50), true);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Reference to undeclared constant \_OPTIONS
Open

$option_tray = new icms_form_elements_Tray(_OPTIONS,'<br />');
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Call to method addOption from undeclared class \icms_form_elements_Checkbox
Open

        $nohtml_checkbox->addOption(1, _DISABLEHTML);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Variable $order is undeclared
Open

$cform->addElement(new icms_form_elements_Hidden('order', (int) $order));
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Reference to undeclared constant \_MESSAGEICON
Open

$icons_radio = new icms_form_elements_Radio(_MESSAGEICON, 'icon', $icon);
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Call to method getFileList from undeclared class \icms_core_Filesystem
Open

$subject_icons = icms_core_Filesystem::getFileList(ICMS_ROOT_PATH . "/images/subject/", '', array('gif', 'jpg', 'png'));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Variable $subject is undeclared
Open

if (!preg_match("/^re:/i", $subject)) {
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

$smiley_checkbox = new icms_form_elements_Checkbox('', 'nosmiley', $nosmiley);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement($option_tray);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$cform->addElement(new icms_form_elements_Hidden('pid', (int) $pid));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Hidden('item_id', (int) $item_id));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Text(_CM_TITLE, 'subject', 50, 255, $subject), true);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Radio
Open

$icons_radio = new icms_form_elements_Radio(_MESSAGEICON, 'icon', $icon);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Reference to undeclared constant \_DISABLESMILEY
Open

$smiley_checkbox->addOption(1, _DISABLESMILEY);
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Hidden('pid', (int) $pid));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$cform->addElement(new icms_form_elements_Hidden('item_id', (int) $item_id));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_Theme
Open

$cform = new icms_form_Theme(_CM_POSTCOMMENT, "commentform", "postcomment.php", "post", true);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method display from undeclared class \icms_form_Theme
Open

$cform->display();
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Reference to undeclared constant \_CM_POSTCOMMENT
Open

$cform = new icms_form_Theme(_CM_POSTCOMMENT, "commentform", "postcomment.php", "post", true);
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

        $nohtml_checkbox = new icms_form_elements_Checkbox('', 'nohtml', $nohtml);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$cform->addElement(new icms_form_elements_Hidden('comment_id', (int) $comment_id));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

        $option_tray->addElement($noname_checkbox);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Variable $comment_id is undeclared
Open

$cform->addElement(new icms_form_elements_Hidden('comment_id', (int) $comment_id));
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

$button_tray->addElement(new icms_form_elements_Button('', 'preview', _PREVIEW, 'submit'));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

        $option_tray->addElement($nohtml_checkbox);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

$button_tray->addElement(new icms_form_elements_Button('', 'post', _CM_POSTCOMMENT, 'submit'));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method addOption from undeclared class \icms_form_elements_Checkbox
Open

$smiley_checkbox->addOption(1, _DISABLESMILEY);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

$option_tray->addElement($smiley_checkbox);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Reference to undeclared constant \_CM_POSTCOMMENT
Open

$button_tray->addElement(new icms_form_elements_Button('', 'post', _CM_POSTCOMMENT, 'submit'));
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Call to method icms_substr from undeclared class \icms_core_DataFilter
Open

    $subject = "Re: " . icms_core_DataFilter::icms_substr($subject,0,56);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Reference to undeclared constant \_DISABLEHTML
Open

        $nohtml_checkbox->addOption(1, _DISABLEHTML);
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Button
Open

$button_tray->addElement(new icms_form_elements_Button('', 'post', _CM_POSTCOMMENT, 'submit'));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$cform->addElement(new icms_form_elements_Text(_CM_TITLE, 'subject', 50, 255, $subject), true);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method addOption from undeclared class \icms_form_elements_Radio
Open

    $icons_radio->addOption($iconfile, '<img src="' . ICMS_IMAGES_URL . '/subject/' . $iconfile . '" alt="" />');
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Hidden('comment_id', (int) $comment_id));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Dhtmltextarea
Open

$cform->addElement(new icms_form_elements_Dhtmltextarea(_CM_MESSAGE, 'message', $message, 10, 50), true);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Reference to undeclared constant \_POSTANON
Open

        $noname_checkbox->addOption(1, _POSTANON);
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Variable $pid is undeclared
Open

$cform->addElement(new icms_form_elements_Hidden('pid', (int) $pid));
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Reference to static property user from undeclared class \icms
Open

if (icms::$user) {
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Reference to undeclared constant \_PREVIEW
Open

$button_tray->addElement(new icms_form_elements_Button('', 'preview', _PREVIEW, 'submit'));
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Tray
Open

$button_tray = new icms_form_elements_Tray('' ,'&nbsp;');
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Variable $item_id is undeclared
Open

$cform->addElement(new icms_form_elements_Hidden('item_id', (int) $item_id));
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement($button_tray);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Reference to undeclared constant \_CM_TITLE
Open

$cform->addElement(new icms_form_elements_Text(_CM_TITLE, 'subject', 50, 255, $subject), true);
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement($icons_radio);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Reference to undeclared constant \_CM_MESSAGE
Open

$cform->addElement(new icms_form_elements_Dhtmltextarea(_CM_MESSAGE, 'message', $message, 10, 50), true);
Severity: Minor
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Tray
Open

$option_tray = new icms_form_elements_Tray(_OPTIONS,'<br />');
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

        $noname_checkbox = new icms_form_elements_Checkbox('', 'noname', $noname);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method addOption from undeclared class \icms_form_elements_Checkbox
Open

        $noname_checkbox->addOption(1, _POSTANON);
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Button
Open

$button_tray->addElement(new icms_form_elements_Button('', 'preview', _PREVIEW, 'submit'));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$cform->addElement(new icms_form_elements_Hidden('order', (int) $order));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Hidden('order', (int) $order));
Severity: Critical
Found in htdocs/include/commentform.inc.php by phan

Space found before comma in function call
Open

$button_tray = new icms_form_elements_Tray('' ,'&nbsp;');

No space found after comma in function call
Open

$button_tray = new icms_form_elements_Tray('' ,'&nbsp;');

No space found after comma in function call
Open

    $subject = "Re: " . icms_core_DataFilter::icms_substr($subject,0,56);

No space found after comma in function call
Open

    $subject = "Re: " . icms_core_DataFilter::icms_substr($subject,0,56);

No space found after comma in function call
Open

$option_tray = new icms_form_elements_Tray(_OPTIONS,'<br />');

There are no issues that match your filters.

Category
Status