Configure PHP inspections to tell a white-space or tab at the begin of the file as error?
I've just lost about 30 minutes looking for the file in my project that added a tab at the begin of the output ;)
So im wondering if there is a way to tell phpStorm to report php files that begin like:
\n<?php
//stuff
or
\t<?php
//stuff
as an error or warning (code-smell)
I haven't find this option in the default PHP inspections
Please sign in to leave a comment.
Hi there,
AFAIK there is no such inspection in PhpStorm.
You can always use 3rd aprty PHP_CodeSniffer (and maybe Mess Detector) for such and many more inspections (PhpStorm has good integration with these tools).
http://youtrack.jetbrains.com/issue/WI-15628