XoopsModules25x/about

View on GitHub

Showing 434 of 434 total issues

Expected 1 space after closing parenthesis; found 0
Open

                    if (isset($this->tree[$childkey]['obj'])):
Severity: Minor
Found in class/Tree.php by phpcodesniffer

No space found after comma in function call
Open

        $text                      = strip_tags($myts->undoHtmlSpecialChars($myts->displayTarea($v['page_text'], 1,1,1,1,1)));
Severity: Minor
Found in index.php by phpcodesniffer

No space found after comma in function call
Open

        $text                      = strip_tags($myts->undoHtmlSpecialChars($myts->displayTarea($v['page_text'], 1,1,1,1,1)));
Severity: Minor
Found in index.php by phpcodesniffer

No space found after comma in function call
Open

        $page['page_text'] = $myts->undoHtmlSpecialChars($myts->displayTarea($page['page_text'], 1,1,1,1,1));
Severity: Minor
Found in index.php by phpcodesniffer

No space found after comma in function call
Open

        $text                      = strip_tags($myts->undoHtmlSpecialChars($myts->displayTarea($v['page_text'], 1,1,1,1,1)));
Severity: Minor
Found in index.php by phpcodesniffer

No space found after comma in function call
Open

        $text                      = strip_tags($myts->undoHtmlSpecialChars($myts->displayTarea($v['page_text'], 1,1,1,1,1)));
Severity: Minor
Found in index.php by phpcodesniffer

No space found after comma in function call
Open

    $page_text             = $myts->displayTarea(trim($v['page_text']), 1,1,1,1,1);
Severity: Minor
Found in index.php by phpcodesniffer

No space found after comma in function call
Open

        $page['page_text'] = $myts->undoHtmlSpecialChars($myts->displayTarea($page['page_text'], 1,1,1,1,1));
Severity: Minor
Found in index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 8
Open

        if (0 !== strncmp($prefix, $class, $len)) {
Severity: Minor
Found in preloads/autoloader.php by phpcodesniffer

No space found after comma in function call
Open

        $page['page_text'] = $myts->undoHtmlSpecialChars($myts->displayTarea($page['page_text'], 1,1,1,1,1));
Severity: Minor
Found in index.php by phpcodesniffer

The variable $old_directories is not named in camelCase.
Open

function xoops_module_uninstall_about(\XoopsModule $module)
{
    //    return true;

    require_once dirname(__DIR__) . '/preloads/autoloader.php';
Severity: Minor
Found in include/onuninstall.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $menu_criteria is not named in camelCase.
Open

function about_block_menu_show()
{
    $moduleDirName = basename(dirname(__DIR__));

    $helper        = Helper::getInstance();
Severity: Minor
Found in blocks/blocks.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $page_select is not named in camelCase.
Open

function about_block_page_edit($options)
{
    $moduleDirName = basename(dirname(__DIR__));
    $helper       = Helper::getInstance();
    $options_page = [];
Severity: Minor
Found in blocks/blocks.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $new_id is not named in camelCase.
Open

    public static function cloneRecord($tableName, $id_field, $id)
    {
        $new_id = false;
        $table  = $GLOBALS['xoopsDB']->prefix($tableName);
        // copy content of the record you wish to clone
Severity: Minor
Found in class/Common/SysUtility.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $old_directories is not named in camelCase.
Open

function xoops_module_uninstall_about(\XoopsModule $module)
{
    $moduleDirName = $module->dirname();
    $helper  = Helper::getInstance();
    $utility = new Utility();
Severity: Minor
Found in include/action.module.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $page_text is not named in camelCase.
Open

function about_block_page_show($options)
{
    if (empty($options[0])) {
        return false;
    }
Severity: Minor
Found in blocks/blocks.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $page_title is not named in camelCase.
Open

function about_block_page_edit($options)
{
    $moduleDirName = basename(dirname(__DIR__));
    $helper       = Helper::getInstance();
    $options_page = [];
Severity: Minor
Found in blocks/blocks.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $old_directories is not named in camelCase.
Open

function xoops_module_uninstall_about(\XoopsModule $module)
{
    //    return true;

    require_once dirname(__DIR__) . '/preloads/autoloader.php';
Severity: Minor
Found in include/onuninstall.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $page_menu is not named in camelCase.
Open

function about_block_menu_show()
{
    $moduleDirName = basename(dirname(__DIR__));

    $helper        = Helper::getInstance();
Severity: Minor
Found in blocks/blocks.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $page_menu is not named in camelCase.
Open

function about_block_menu_show()
{
    $moduleDirName = basename(dirname(__DIR__));

    $helper        = Helper::getInstance();
Severity: Minor
Found in blocks/blocks.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

Severity
Category
Status
Source
Language