I just started using PhpStorm, and it doesn’t want me to indent the first line after the opening <?php tag. I prefer to, so I do it manually each time. This may seem rather trivial, but after searching I cannot find any definitive reasons to do it one way or the other. Is there a best practice for indenting after opening a script tag?
I just started using PhpStorm, and it doesn’t want me to indent the first
Share
While not directly defined, PSR-0, PSR-1, PSR-2, and PSR-3 do not indent after the PHP tags. Since the PSR’s are the defacto standard of PHP coding styles I would recommend sticking to the PSR Standards and trying to break your habit of the initial indent, if for no other reason to reduce the length of lines and thus line wraps and line breaks.