About C#/.NET programming, BlogEngine usage, and Software testing
Posts tagged php_codesniffer
PEAR PHP_CodeSniffer: End of line character is invalid; expected “n” but found “rn”
Apr 26th
The Issue:
I have another ERROR discovered by PEAR PHP_CodeSniffer, http://pear.php.net/package/PHP_CodeSniffer:
End of line character is invalid; expected “n” but found “rn”
And this ERROR is only occurring at the very first line, at , in my PHP code.
The Sollution:
For new files, you can change the default line delimiter to Unix style, such as in Eclipse, you can,
Window –>