ImpressCMS/impresscms

View on GitHub
htdocs/include/searchform.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method __construct from undeclared class \icms_form_Theme
Open

$search_form = new icms_form_Theme(_SR_SEARCH, "search", "search.php", 'get');
Severity: Critical
Found in htdocs/include/searchform.php by phan

Variable $queries is undeclared
Open

$search_form->addElement(new icms_form_elements_Text(_SR_KEYWORDS, "query", 30, 255, htmlspecialchars(stripslashes(implode(" ", $queries)), ENT_QUOTES)), true);
Severity: Minor
Found in htdocs/include/searchform.php by phan

Reference to undeclared constant \_SR_TYPE
Open

$type_select = new icms_form_elements_Select(_SR_TYPE, "andor", $andor);
Severity: Minor
Found in htdocs/include/searchform.php by phan

Call to method addOptionArray from undeclared class \icms_form_elements_Select
Open

$type_select->addOptionArray(array("AND"=>_SR_ALL, "OR"=>_SR_ANY, "exact"=>_SR_EXACT));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Reference to undeclared constant \_SR_ALL
Open

$type_select->addOptionArray(array("AND"=>_SR_ALL, "OR"=>_SR_ANY, "exact"=>_SR_EXACT));
Severity: Minor
Found in htdocs/include/searchform.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$search_form->addElement($mods_checkbox);
Severity: Critical
Found in htdocs/include/searchform.php by phan

Reference to undeclared constant \_SR_ANY
Open

$type_select->addOptionArray(array("AND"=>_SR_ALL, "OR"=>_SR_ANY, "exact"=>_SR_EXACT));
Severity: Minor
Found in htdocs/include/searchform.php by phan

Call to method __construct from undeclared class \icms_db_criteria_Compo
Open

    $criteria = new icms_db_criteria_Compo();
Severity: Critical
Found in htdocs/include/searchform.php by phan

Variable $module is undeclared
Open

    unset($module);
Severity: Minor
Found in htdocs/include/searchform.php by phan

Reference to undeclared constant \_SR_SEARCHIN
Open

    $mods_checkbox = new icms_form_elements_Checkbox(_SR_SEARCHIN, "mids[]", $mids);
Severity: Minor
Found in htdocs/include/searchform.php by phan

Call to method add from undeclared class \icms_db_criteria_Compo
Open

    $criteria->add(new icms_db_criteria_Item('hassearch', 1));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Variable $icmsConfigSearch is undeclared
Open

if ($icmsConfigSearch['keyword_min'] > 0) {
Severity: Minor
Found in htdocs/include/searchform.php by phan

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

    $mods_checkbox = new icms_form_elements_Checkbox(_SR_SEARCHIN, "mids[]", $mid);
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method add from undeclared class \icms_db_criteria_Compo
Open

    $criteria->add(new icms_db_criteria_Item('isactive', 1));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$search_form->addElement(new icms_form_elements_Hidden("action", "results"));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$search_form->addElement(new icms_form_elements_Hidden("action", "results"));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method render from undeclared class \icms_form_Theme
Open

return $search_form->render();
Severity: Critical
Found in htdocs/include/searchform.php by phan

Variable $icmsConfigSearch is undeclared
Open

    $search_form->addElement(new icms_form_elements_Label(_SR_SEARCHRULE, sprintf(_SR_KEYIGNORE, icms_conv_nr2local($icmsConfigSearch['keyword_min']))));
Severity: Minor
Found in htdocs/include/searchform.php by phan

Reference to undeclared constant \_SR_SEARCH
Open

$search_form->addElement(new icms_form_elements_Button("", "submit", _SR_SEARCH, "submit"));
Severity: Minor
Found in htdocs/include/searchform.php by phan

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

    $criteria->add(new icms_db_criteria_Item('hassearch', 1));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method addOptionArray from undeclared class \icms_form_elements_Checkbox
Open

    $mods_checkbox->addOptionArray($module_handler->getList($criteria));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Reference to undeclared constant \_SR_KEYWORDS
Open

$search_form->addElement(new icms_form_elements_Text(_SR_KEYWORDS, "query", 30, 255, htmlspecialchars(stripslashes(implode(" ", $queries)), ENT_QUOTES)), true);
Severity: Minor
Found in htdocs/include/searchform.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$search_form->addElement(new icms_form_elements_Button("", "submit", _SR_SEARCH, "submit"));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Reference to undeclared constant \_SR_SEARCHIN
Open

    $mods_checkbox = new icms_form_elements_Checkbox(_SR_SEARCHIN, "mids[]", $mid);
Severity: Minor
Found in htdocs/include/searchform.php by phan

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

    $criteria->add(new icms_db_criteria_Item('isactive', 1));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

        $criteria->add(new icms_db_criteria_Item('mid', "(" . implode(',', $available_modules) . ")", 'IN'));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Variable $module_array was undeclared, but array fields are being added to it.
Open

    foreach (array_keys($modules) as $mid) $module_array[$mid] = $modules[$mid]->getVar('name');
Severity: Info
Found in htdocs/include/searchform.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

    $search_form->addElement(new icms_form_elements_Label(_SR_SEARCHRULE, sprintf(_SR_KEYIGNORE, icms_conv_nr2local($icmsConfigSearch['keyword_min']))));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Reference to undeclared constant \_SR_EXACT
Open

$type_select->addOptionArray(array("AND"=>_SR_ALL, "OR"=>_SR_ANY, "exact"=>_SR_EXACT));
Severity: Minor
Found in htdocs/include/searchform.php by phan

Reference to undeclared constant \_SR_SEARCHRULE
Open

    $search_form->addElement(new icms_form_elements_Label(_SR_SEARCHRULE, sprintf(_SR_KEYIGNORE, icms_conv_nr2local($icmsConfigSearch['keyword_min']))));
Severity: Minor
Found in htdocs/include/searchform.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hiddentoken
Open

$search_form->addElement(new icms_form_elements_Hiddentoken('id'));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method __construct from undeclared class \icms_form_elements_Select
Open

$type_select = new icms_form_elements_Select(_SR_TYPE, "andor", $andor);
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method __construct from undeclared class \icms_form_elements_Label
Open

    $search_form->addElement(new icms_form_elements_Label(_SR_SEARCHRULE, sprintf(_SR_KEYIGNORE, icms_conv_nr2local($icmsConfigSearch['keyword_min']))));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Reference to undeclared constant \_SR_SEARCH
Open

$search_form = new icms_form_Theme(_SR_SEARCH, "search", "search.php", 'get');
Severity: Minor
Found in htdocs/include/searchform.php by phan

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

    $mods_checkbox = new icms_form_elements_Checkbox(_SR_SEARCHIN, "mids[]", $mids);
Severity: Critical
Found in htdocs/include/searchform.php by phan

Reference to undeclared constant \_SR_KEYIGNORE
Open

    $search_form->addElement(new icms_form_elements_Label(_SR_SEARCHRULE, sprintf(_SR_KEYIGNORE, icms_conv_nr2local($icmsConfigSearch['keyword_min']))));
Severity: Minor
Found in htdocs/include/searchform.php by phan

Call to method add from undeclared class \icms_db_criteria_Compo
Open

        $criteria->add(new icms_db_criteria_Item('mid', "(" . implode(',', $available_modules) . ")", 'IN'));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method addOptionArray from undeclared class \icms_form_elements_Checkbox
Open

    $mods_checkbox->addOptionArray($module_array);
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$search_form->addElement(new icms_form_elements_Hiddentoken('id'));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$search_form->addElement(new icms_form_elements_Text(_SR_KEYWORDS, "query", 30, 255, htmlspecialchars(stripslashes(implode(" ", $queries)), ENT_QUOTES)), true);
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$search_form->addElement(new icms_form_elements_Text(_SR_KEYWORDS, "query", 30, 255, htmlspecialchars(stripslashes(implode(" ", $queries)), ENT_QUOTES)), true);
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$search_form->addElement($type_select);
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method handler from undeclared class \icms
Open

    $module_handler = icms::handler('icms_module');
Severity: Critical
Found in htdocs/include/searchform.php by phan

Call to method __construct from undeclared class \icms_form_elements_Button
Open

$search_form->addElement(new icms_form_elements_Button("", "submit", _SR_SEARCH, "submit"));
Severity: Critical
Found in htdocs/include/searchform.php by phan

Expected 1 blank line at end of file; 2 found
Open

return $search_form->render();

Inline control structures are not allowed
Open

    foreach (array_keys($modules) as $mid) $module_array[$mid] = $modules[$mid]->getVar('name');

There are no issues that match your filters.

Category
Status