ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/admin/groups/groupform.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method addOptionArray from undeclared class \icms_form_elements_Checkbox
Open

$r_mod_checkbox->addOptionArray($module_handler->getList($criteria));

Call to method addOptionArray from undeclared class \icms_form_elements_Checkbox
Open

$debug_mod_checkbox->addOptionArray($module_handler->getList($criteria));

Call to method __construct from undeclared class \icms_form_elements_Tray
Open

$r_block_tray = new icms_form_elements_Tray(_AM_BLOCKRIGHTS, "<br /><br />");

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

$criteria->add(new icms_db_criteria_Item('isactive', 1));

Reference to static property user from undeclared class \icms
Open

    if ($gperm_handler->checkRight('group_manager', $group->getVar('groupid'), icms::$user->getGroups()))

Call to method addOptionArray from undeclared class \icms_form_elements_Checkbox
Open

    $block_checkbox[$i]->addOptionArray($new_blocks_array);

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$name_text = new icms_form_elements_Text(_AM_NAME, "name", 30, 50, $name_value);

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

$s_cat_checkbox = new icms_form_elements_Checkbox(_AM_SYSTEMRIGHTS, "system_catids[]", $s_cat_value);

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

$criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('hasadmin', 1));

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

    $criteria->add(new icms_db_criteria_Item('mid', '(' . implode(',', $a_mod) . ')', 'IN'));

Call to method addOptionArray from undeclared class \icms_form_elements_Checkbox
Open

$ed_mod_checkbox->addOptionArray($module_handler->getList($criteria));

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

    $criteria->add(new icms_db_criteria_Item('mid', '(' . implode(',', $debug_mod) . ')', 'IN'));

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

$group_manager_checkbox = new icms_form_elements_Checkbox(_AM_GROUPMANAGER_PERM, "groupmanager_gids[]", $group_manager_value);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($s_cat_checkbox);

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($group_manager_checkbox);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($op_hidden);

Call to method getDirList from undeclared class \icms_core_Filesystem
Open

$dirlist = icms_core_Filesystem::getDirList($admin_dir);

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

    $block_checkbox[$i] = new icms_form_elements_Checkbox('<strong>' . $tit . '</strong><br />', "read_bids[]", $r_block_value);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($r_mod_checkbox);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($r_block_tray);

Call to method __construct from undeclared class \icms_db_criteria_Compo
Open

$criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('hasadmin', 1));

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

$criteria->add(new icms_db_criteria_Item('isactive', 1));

Call to method add from undeclared class \icms_db_criteria_Compo
Open

$criteria->add(new icms_db_criteria_Item('isactive', 1));

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($submit_button);

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

$debug_mod_checkbox = new icms_form_elements_Checkbox(_AM_DEBUG_PERM, "enabledebug_mids[]", $debug_mod_value);

Call to method handler from undeclared class \icms
Open

$gperm_handler = icms::handler('icms_member_groupperm');

Call to method addOption from undeclared class \icms_form_elements_Checkbox
Open

    $group_manager_checkbox->addOption($group->getVar('groupid'), $group->getVar('name'));

Call to method setRequired from undeclared class \icms_form_Theme
Open

$form->setRequired($name_text);

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

$a_mod_checkbox = new icms_form_elements_Checkbox(_AM_ACTIVERIGHTS, "admin_mids[]", $a_mod_value);

Call to method add from undeclared class \icms_db_criteria_Compo
Open

    $criteria->add(new icms_db_criteria_Item('mid', '(' . implode(',', $r_mod) . ')', 'IN'));

Variable $member_handler is undeclared
Open

$groups = $member_handler->getGroups();

Call to method addOptionArray from undeclared class \icms_form_elements_Checkbox
Open

$a_mod_checkbox->addOptionArray($module_handler->getList($criteria));

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

$criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('isactive', 1));

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($desc_text);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($a_mod_checkbox);

Call to method addOption from undeclared class \icms_form_elements_Checkbox
Open

        $s_cat_checkbox->addOption($modversion['category'], $modversion['name']);

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$fct_hidden = new icms_form_elements_Hidden("fct", "groups");

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

    $g_id_hidden = new icms_form_elements_Hidden("g_id", $g_id_value);

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($g_id_hidden);

Call to method __construct from undeclared class \icms_form_elements_Textarea
Open

$desc_text = new icms_form_elements_Textarea(_AM_DESCRIPTION, "desc", $desc_value);

Call to method add from undeclared class \icms_db_criteria_Compo
Open

$criteria->add(new icms_db_criteria_Item('isactive', 1));

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

$ed_mod_checkbox = new icms_form_elements_Checkbox(_AM_EDPERM, "useeditor_mids[]", $ed_mod_value);

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($ed_mod_checkbox);

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($debug_mod_checkbox);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($fct_hidden);

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

$criteria->add(new icms_db_criteria_Item('dirname', 'system', '<>'));

Call to method add from undeclared class \icms_db_criteria_Compo
Open

    $criteria->add(new icms_db_criteria_Item('mid', '(' . implode(',', $debug_mod) . ')', 'IN'));

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$op_hidden = new icms_form_elements_Hidden("op", $op_value);

Call to method __construct from undeclared class \icms_db_criteria_Compo
Open

$criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('isactive', 1));

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

$criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('isactive', 1));

Reference to static property user from undeclared class \icms
Open

$groups = icms::$user->getGroups();

Call to method handler from undeclared class \icms
Open

$module_handler = icms::handler('icms_module');

Call to method add from undeclared class \icms_db_criteria_Compo
Open

$criteria->add(new icms_db_criteria_Item('dirname', 'system', '<>'));

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

    $criteria->add(new icms_db_criteria_Item('mid', '(' . implode(',', $r_mod) . ')', 'IN'));

Call to method display from undeclared class \icms_form_Theme
Open

$form->display(); // render() does not output the form, just contains the output

Call to method add from undeclared class \icms_db_criteria_Compo
Open

    $criteria->add(new icms_db_criteria_Item('mid', '(' . implode(',', $a_mod) . ')', 'IN'));

Call to method __construct from undeclared class \icms_db_criteria_Compo
Open

$criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('hasmain', 1));

Call to method add from undeclared class \icms_db_criteria_Compo
Open

    $criteria->add(new icms_db_criteria_Item('mid', '(' . implode(',', $ed_mod) . ')', 'IN'));

Call to method __construct from undeclared class \icms_form_elements_Button
Open

$submit_button = new icms_form_elements_Button("", "groupsubmit", $submit_value, "submit");

Call to method __construct from undeclared class \icms_db_criteria_Compo
Open

$criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('isactive', 1));

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

    $criteria->add(new icms_db_criteria_Item('mid', '(' . implode(',', $ed_mod) . ')', 'IN'));

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

$criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('isactive', 1));

Call to method __construct from undeclared class \icms_db_criteria_Compo
Open

$criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('isactive', 1));

Reference to static property user from undeclared class \icms
Open

$groups = icms::$user->getGroups();

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

    $r_block_tray->addElement($block_checkbox[$k]);

Call to method handler from undeclared class \icms
Open

$gperm = icms::handler('icms_member_groupperm');

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

$r_mod_checkbox = new icms_form_elements_Checkbox(_AM_ACCESSRIGHTS, "read_mids[]", $r_mod_value);

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

$criteria = new icms_db_criteria_Compo(new icms_db_criteria_Item('hasmain', 1));

Call to method handler from undeclared class \icms
Open

$icms_block_handler = icms::handler('icms_view_block');

Call to method __construct from undeclared class \icms_form_Theme
Open

$form = new icms_form_Theme($form_title, "groupform", "admin.php", "post", true);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($name_text, TRUE);

Expected 1 space before "=>"; 0 found
Open

    foreach ($n_blocks_array as $key=>$value) {

Expected 1 space after "=>"; 0 found
Open

foreach ($block_checkbox as $k=>$v) {

Expected 1 space before "=>"; 0 found
Open

foreach ($posarr as $k=>$v) {

Expected 1 space before "=>"; 0 found
Open

foreach ($block_checkbox as $k=>$v) {

Expected 1 space after "=>"; 0 found
Open

foreach ($posarr as $k=>$v) {

Expected 1 space after "=>"; 0 found
Open

    foreach ($n_blocks_array as $key=>$value) {

TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
Open

$form->addElement($name_text, TRUE);

Inline control structures are not allowed
Open

    if ($gperm_handler->checkRight('group_manager', $group->getVar('groupid'), icms::$user->getGroups()))

There are no issues that match your filters.

Category
Status