XoopsModules25x/apcal

View on GitHub

Showing 26,336 of 26,336 total issues

Avoid variables with short names like $w. Configured minimum length is 3.
Open

        $w         = imagesx($img);
Severity: Minor
Found in thumbs/phpthumb.unsharp.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

Avoid variables with short names like $h. Configured minimum length is 3.
Open

        $h         = imagesy($img);
Severity: Minor
Found in thumbs/phpthumb.unsharp.php by phpmd

ShortVariable

Since: 0.2

Detects when a field, local, or parameter has a very short name.

Example

class Something {
    private $q = 15; // VIOLATION - Field
    public static function main( array $as ) { // VIOLATION - Formal
        $r = 20 + $this->q; // VIOLATION - Local
        for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
            $r += $this->q;
        }
    }
}

Source https://phpmd.org/rules/naming.html#shortvariable

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 28 and the first side effect is on line 157.
Open

<?php
Severity: Minor
Found in admin/categories.php by phpcodesniffer

The class phpUnsharpMask is not named in CamelCase.
Open

class phpUnsharpMask
{

    /**
     * @param $img
Severity: Minor
Found in thumbs/phpthumb.unsharp.php by phpmd

CamelCaseClassName

Since: 0.2

It is considered best practice to use the CamelCase notation to name classes.

Example

class class_name {
}

Source

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 22 and the first side effect is on line 34.
Open

<?php
Severity: Minor
Found in admin/maintenance.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 88 and the first side effect is on line 8.
Open

<?php
Severity: Minor
Found in admin/myblocksadmin2.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 30 and the first side effect is on line 21.
Open

<?php
Severity: Minor
Found in admin/mygroupperm.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 99 and the first side effect is on line 21.
Open

<?php
Severity: Minor
Found in admin/myblocksadmin.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 38 and the first side effect is on line 21.
Open

<?php
Severity: Minor
Found in admin/mygrouppermform.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 410 and the first side effect is on line 21.
Open

<?php
Severity: Minor
Found in admin/pluginsmanager.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 368 and the first side effect is on line 21.
Open

<?php
Severity: Minor
Found in admin/mytplsadmin.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 142 and the first side effect is on line 21.
Open

<?php
Severity: Minor
Found in admin/myblockform.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 26 and the first side effect is on line 53.
Open

<?php
Severity: Minor
Found in locales/canada-fr.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 26 and the first side effect is on line 53.
Open

<?php
Severity: Minor
Found in locales/canada.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 547 and the first side effect is on line 23.
Open

<?php
Severity: Minor
Found in include/blocksadmin.inc.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 27 and the first side effect is on line 20.
Open

<?php
Severity: Minor
Found in include/config.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 246 and the first side effect is on line 22.
Open

<?php
Severity: Minor
Found in include/read_configs.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 38 and the first side effect is on line 21.
Open

<?php
Severity: Minor
Found in include/sitemap.plugin.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 27 and the first side effect is on line 41.
Open

<?php
Severity: Minor
Found in locales/france.php by phpcodesniffer

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 34 and the first side effect is on line 26.
Open

<?php
Severity: Minor
Found in include/onupdate.php by phpcodesniffer
Severity
Category
Status
Source
Language