Feature Request #4673

Allow comments on same line as if statement

Added by Yehuda Katz over 1 year ago. Updated over 1 year ago.

Status:NewStart date:12/09/2012
Priority:NormalDue 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