Feature Request #4673

Allow comments on same line as if statement

Added by Yehuda Katz 5 months ago. Updated 5 months ago.

Status:New Start date:12/09/2012
Priority:Normal Due date:
Assignee:Yehuda Katz % Done:

0%

Category:PHPCS Coding Standards
Target version:-
Resolution: Points:1

Description

Code like the following generates an error about using single line if statements:


if ($condition) // This checks for condition beta
{
    do('abc');
}

I will submit a GitHub pull request referencing this if you want to use it.

Also available in: Atom PDF