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:



as an error or warning (code-smell)
I haven't find this option in the default PHP inspections

1 comment
Comment actions Permalink

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).


Please sign in to leave a comment.