ImpressCMS/impresscms

View on GitHub
htdocs/include/protection.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable $icmsConfigPersona is undeclared
Open

$fontSize = (int) ($icmsConfigPersona['email_font_len']);
Severity: Minor
Found in htdocs/include/protection.php by phan

Argument 1 (x_size) is float but \imagecreate() takes int
Open

$image = imagecreate($width,$height);
Severity: Minor
Found in htdocs/include/protection.php by phan

Variable $icmsConfigPersona is undeclared
Open

if ($icmsConfigPersona['email_shadow']!="") {
Severity: Minor
Found in htdocs/include/protection.php by phan

Variable $icmsConfigPersona is undeclared
Open

$font = ICMS_LIBRARIES_PATH . '/icms/form/elements/captcha/fonts/'.$icmsConfigPersona['email_font'];
Severity: Minor
Found in htdocs/include/protection.php by phan

Variable $icmsConfigPersona is undeclared
Open

$fg = $icmsConfigPersona['email_cor'];
Severity: Minor
Found in htdocs/include/protection.php by phan

Variable $icmsConfigPersona is undeclared
Open

if ($icmsConfigPersona['email_shadow']!="") {
Severity: Minor
Found in htdocs/include/protection.php by phan

Variable $icmsConfigPersona is undeclared
Open

    imagettftext($image, $fontSize, 0, (int) ($icmsConfigPersona['shadow_y']), $height- (int) ($icmsConfigPersona['shadow_x'])-5, $shadow , $font, $emailAddress);
Severity: Minor
Found in htdocs/include/protection.php by phan

Variable $icmsConfigPersona is undeclared
Open

    $fg = $icmsConfigPersona['email_shadow'];
Severity: Minor
Found in htdocs/include/protection.php by phan

Argument 4 (x2) is float but \imagefilledrectangle() takes int
Open

ImageFilledRectangle($image,0,0,$width,$height,$white);
Severity: Minor
Found in htdocs/include/protection.php by phan

Expected 0 spaces before closing bracket; 1 found
Open

if (preg_match( "/[#]?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i", $fg, $ret ) )

Space found before comma in function call
Open

    imagettftext($image, $fontSize, 0, (int) ($icmsConfigPersona['shadow_y']), $height- (int) ($icmsConfigPersona['shadow_x'])-5, $shadow , $font, $emailAddress);

Expected 0 spaces before closing bracket; 1 found
Open

    if (preg_match( "/[#]?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i", $fg, $ret ) )

Space after opening parenthesis of function call prohibited
Open

    $blue = hexdec( $ret[3] );

Expected 1 space after closing parenthesis; found 5
Open

    if (preg_match( "/[#]?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i", $fg, $ret ) )

Space after opening parenthesis of function call prohibited
Open

        $sred = hexdec( $ret[1] );

Space after opening parenthesis of function call prohibited
Open

        $sblue = hexdec( $ret[3] );

No space found after comma in function call
Open

ImageFilledRectangle($image,0,0,$width,$height,$white);

Expected 1 space after closing parenthesis; found 1
Open

if (preg_match( "/[#]?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i", $fg, $ret ) )

Space after opening parenthesis of function call prohibited
Open

    if (preg_match( "/[#]?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i", $fg, $ret ) )

Expected 0 spaces before closing bracket; 1 found
Open

    if (preg_match( "/[#]?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i", $fg, $ret ) )

Expected 0 spaces before closing bracket; 1 found
Open

        $sred = hexdec( $ret[1] );

No space found after comma in function call
Open

    $shadow = imagecolorallocate($image, $sred,$sgreen,$sblue);

No space found after comma in function call
Open

ImageFilledRectangle($image,0,0,$width,$height,$white);

A closing tag is not permitted at the end of a PHP file
Open

?>

Expected 0 spaces before closing bracket; 1 found
Open

    $red = hexdec( $ret[1] );

No space found after comma in function call
Open

$white = ImageColorAllocate($image,255,255,255);

Expected 0 spaces before closing bracket; 1 found
Open

    $green = hexdec( $ret[2] );

Space after opening parenthesis of function call prohibited
Open

        $sgreen = hexdec( $ret[2] );

No space found after comma in function call
Open

$frente = imagecolorallocate($image, $red,$green,$blue);

No space found after comma in function call
Open

ImageFilledRectangle($image,0,0,$width,$height,$white);

No space found after comma in function call
Open

$frente = imagecolorallocate($image, $red,$green,$blue);

No space found after comma in function call
Open

$image = imagecreate($width,$height);

Expected 0 spaces before closing bracket; 1 found
Open

        $sgreen = hexdec( $ret[2] );

No space found after comma in function call
Open

$white = ImageColorAllocate($image,255,255,255);

No space found after comma in function call
Open

$white = ImageColorAllocate($image,255,255,255);

Space after opening parenthesis of function call prohibited
Open

Header( "Content-type: image/png");

Space after opening parenthesis of function call prohibited
Open

    $red = hexdec( $ret[1] );

No space found after comma in function call
Open

    $shadow = imagecolorallocate($image, $sred,$sgreen,$sblue);

No space found after comma in function call
Open

ImageFilledRectangle($image,0,0,$width,$height,$white);

No space found after comma in function call
Open

ImageFilledRectangle($image,0,0,$width,$height,$white);

Expected 0 spaces before closing bracket; 1 found
Open

    $blue = hexdec( $ret[3] );

Expected 0 spaces before closing bracket; 1 found
Open

        $sblue = hexdec( $ret[3] );

Space after opening parenthesis of function call prohibited
Open

    $green = hexdec( $ret[2] );

Expected 0 spaces before closing bracket; 1 found
Open

if (preg_match( "/[#]?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i", $fg, $ret ) )

Expected 1 newline at end of file; 0 found
Open

?>

Space after opening parenthesis of function call prohibited
Open

if (preg_match( "/[#]?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i", $fg, $ret ) )

There are no issues that match your filters.

Category
Status