PSR enabled

Hello

Why PSR support isn;t enabled by default in phpstorm 7.1 ?

For example Convert True/False constant to isn't checked and all PSR options have to be manually set.

5 comments
Comment actions Permalink

Maybe, but I rather mean PSR-1/PSR-2 . Maybe because I set up symfony project it was not set to PSR1/2 ?

0
Comment actions Permalink

Have you seen this: http://blog.jetbrains.com/webide/2012/11/more-php-formatting-options-and-bundled-code-styles-for-ps/ ?

Also code formatting can be set to PSR1/PSR2: Settings (Preferences for Mac OS) | Code Style | PHP | Set From... | Predefined Style | PSR1/PSR2 .

0
Comment actions Permalink

Yes, thanks. I will have to check it with another project if it set it by default

0
Comment actions Permalink

I'm new to PHP Storm. I have version 8.0.3. I just selected PSR1/PSR2 as style.

I have an existing codebase that I want to reformat to that style. How do I go about it?

0

Please sign in to leave a comment.