php - Strange PHPCS error message -
i have following snippet in php class:
$returnarray = array(); while($row = mysql_fetch_assoc($rhandle)) { $returnarray[] = $row; }
phpcs complains 'while' line:
161 | error | expected "while (...) {\n"; found "while(...){\n"
the problem cs (in case) expects space after while. need write code this:
while ($row = mysql_fetch_assoc($rhandle)) { }
edit: also, see cs reporting missing space between ) , { when closing while, think fixed when posting question :)
Comments
Post a Comment