XoopsModules25x/apcal

View on GitHub

Showing 26,336 of 26,336 total issues

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

    if (!($fh = @fopen($lpszFileName, 'wb'))) {
Severity: Minor
Found in thumbs/phpthumb.gif.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

The property $m_colorTable is not named in camelCase.
Open

class CGIFFILEHEADER
{
    public $m_lpVer;
    public $m_nWidth;
    public $m_nHeight;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

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

            $r2 = ($this->m_arColors[$i] & 0x000000FF);
Severity: Minor
Found in thumbs/phpthumb.gif.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

The property $m_nWidth is not named in camelCase.
Open

class CGIFIMAGEHEADER
{
    public $m_nLeft;
    public $m_nTop;
    public $m_nWidth;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $m_gih is not named in camelCase.
Open

class CGIFIMAGE
{
    public $m_disp;
    public $m_bUser;
    public $m_bTrans;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $m_nDelay is not named in camelCase.
Open

class CGIFIMAGE
{
    public $m_disp;
    public $m_bUser;
    public $m_bTrans;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $m_nTrans is not named in camelCase.
Open

class CGIFIMAGE
{
    public $m_disp;
    public $m_bUser;
    public $m_bTrans;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $m_lzw is not named in camelCase.
Open

class CGIFIMAGE
{
    public $m_disp;
    public $m_bUser;
    public $m_bTrans;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $m_lpData is not named in camelCase.
Open

class CGIF
{
    public $m_gfh;
    public $m_lpData;
    public $m_img;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

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

    $fd = $gif->getBmp($bgColor);
Severity: Minor
Found in thumbs/phpthumb.gif.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

The property $m_nWidth is not named in camelCase.
Open

class CGIFFILEHEADER
{
    public $m_lpVer;
    public $m_nWidth;
    public $m_nHeight;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $m_bLocalClr is not named in camelCase.
Open

class CGIFIMAGEHEADER
{
    public $m_nLeft;
    public $m_nTop;
    public $m_nWidth;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $m_data is not named in camelCase.
Open

class CGIFIMAGE
{
    public $m_disp;
    public $m_bUser;
    public $m_bTrans;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

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

        $b    = ord($data{0});
Severity: Minor
Found in thumbs/phpthumb.gif.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 $y. Configured minimum length is 3.
Open

                    $y = 0;
Severity: Minor
Found in thumbs/phpthumb.gif.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

The property $m_nColors is not named in camelCase.
Open

class CGIFCOLORTABLE
{
    public $m_nColors;
    public $m_arColors;

Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

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

            $g2 = ($this->m_arColors[$i] & 0x0000FF00) >> 8;
Severity: Minor
Found in thumbs/phpthumb.gif.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

The property $m_nBgColor is not named in camelCase.
Open

class CGIFFILEHEADER
{
    public $m_lpVer;
    public $m_nWidth;
    public $m_nHeight;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

The property $m_bUser is not named in camelCase.
Open

class CGIFIMAGE
{
    public $m_disp;
    public $m_bUser;
    public $m_bTrans;
Severity: Minor
Found in thumbs/phpthumb.gif.php by phpmd

CamelCasePropertyName

Since: 0.2

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

Example

class ClassName {
    protected $property_name;
}

Source

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

                    $r    = $argb['red'];
Severity: Minor
Found in thumbs/phpthumb.ico.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

Severity
Category
Status
Source
Language