else/ elseif without curly braces
Brought to you by:
hkodungallur,
tchule
Originally created by: maximili...@googlemail.com
What steps will reproduce the problem?
this is a valid if statement:
if (time() == 4)
echo "test";
else
echo "hallo";
But phpcheckstyle flags the line with the warning: "The block closure '}' must be on else". Thats a false positiv warning, because there is no curly brace.
What version of the product are you using? On what operating system?
Version: PHPCheckStyle-0.12.1
OS: Debian Linux 5.0.10
PHP Version: 5.4.8
I attached a patchfile which correct the errors. Hope this helps.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: tch...@hotmail.com
Cool, a patch, thanks ^^
Status: Accepted
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: tch...@hotmail.com
(No comment was entered for this change.)
Status: Fixed