XoopsModules25x/apcal

View on GitHub

Showing 26,336 of 26,336 total issues

The parameter $img_watermark is not named in camelCase.
Open

    public function WatermarkOverlay(
        &$gdimg_dest,
        &$img_watermark,
        $alignment = '*',
        $opacity = 50,
Severity: Minor
Found in thumbs/phpthumb.filters.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $gdimg_hexcolorallocate is not named in camelCase.
Open

    public static function ImageHexColorAllocate(
        &$gdimg_hexcolorallocate,
        $HexColorString,
        $dieOnInvalid = false,
        $alpha = false
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $HexColorString is not named in camelCase.
Open

    public static function IsHexColor($HexColorString)
    {
        return preg_match('#^[0-9A-F]{6}$#i', $HexColorString);
    }
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

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

            $B = hexdec(substr($HexColorString, 4, 2));
Severity: Minor
Found in thumbs/phpthumb.functions.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 parameter $allow_enlarge is not named in camelCase.
Open

    public static function ScaleToFitInBox(
        $width,
        $height,
        $maxwidth = null,
        $maxheight = null,
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $src_y is not named in camelCase.
Open

    public static function ImageCopyResampleBicubic(
        $dst_img,
        $src_img,
        $dst_x,
        $dst_y,
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $dst_x is not named in camelCase.
Open

    public static function ImageCopyRespectAlpha(
        &$dst_im,
        &$src_im,
        $dst_x,
        $dst_y,
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

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

            $ch = curl_init();
Severity: Minor
Found in thumbs/phpthumb.functions.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 parameter $dst_x is not named in camelCase.
Open

    public static function ImageCopyResampleBicubic(
        $dst_img,
        $src_img,
        $dst_x,
        $dst_y,
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $dst_y is not named in camelCase.
Open

    public static function ImageCopyResampleBicubic(
        $dst_img,
        $src_img,
        $dst_x,
        $dst_y,
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $src_y is not named in camelCase.
Open

    public static function ImageCopyRespectAlpha(
        &$dst_im,
        &$src_im,
        $dst_x,
        $dst_y,
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $opacity_pct is not named in camelCase.
Open

    public static function ImageCopyRespectAlpha(
        &$dst_im,
        &$src_im,
        $dst_x,
        $dst_y,
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

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

                    $g = ((($c1 & 0x00FF00) + ($c2 & 0x00FF00) + ($c3 & 0x00FF00) + ($c4 & 0x00FF00)) >> 2) & 0x00FF00;
Severity: Minor
Found in thumbs/phpthumb.functions.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 parameter $dst_h is not named in camelCase.
Open

    public static function ImageCopyResampleBicubic(
        $dst_img,
        $src_img,
        $dst_x,
        $dst_y,
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

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

                    $c2 = imagecolorat($src_img, $siX, $siY);
Severity: Minor
Found in thumbs/phpthumb.functions.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 parameter $dst_y is not named in camelCase.
Open

    public static function ImageCopyRespectAlpha(
        &$dst_im,
        &$src_im,
        $dst_x,
        $dst_y,
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $old_height is not named in camelCase.
Open

    public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
    {
        $old_aspect_ratio = $old_width / $old_height;
        if (($new_width === false) && ($new_height === false)) {
            return false;
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

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

    public static function GrayscaleValue($r, $g, $b)
Severity: Minor
Found in thumbs/phpthumb.functions.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 parameter $y_size is not named in camelCase.
Open

    public static function ImageCreateFunction($x_size, $y_size)
    {
        $ImageCreateFunction = 'ImageCreate';
        if (phpthumb_functions::gd_version() >= 2.0) {
            $ImageCreateFunction = 'ImageCreateTrueColor';
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

The parameter $HexColorString is not named in camelCase.
Open

    public static function ImageHexColorAllocate(
        &$gdimg_hexcolorallocate,
        $HexColorString,
        $dieOnInvalid = false,
        $alpha = false
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseParameterName

Since: 0.2

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

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

Severity
Category
Status
Source
Language