-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adopt PSR-12 for imports statements separation #164
Adopt PSR-12 for imports statements separation #164
Conversation
[PSR-12](https://www.php-fig.org/psr/psr-12) is an extension of the PSR-2 set of rules that aims to standardize the code style. As per PSR-12, under the [item 3](https://www.php-fig.org/psr/psr-12/#3-declare-statements-namespace-and-import-statements): The header of a PHP file may consist of a number of different blocks. If present, each of the blocks below MUST be separated by a single blank line, and MUST NOT contain a blank line. Each block MUST be in the order listed below, although blocks that are not relevant may be omitted. For context on why this was voted in the past, see #9.
e6da438
to
1ede95a
Compare
Most important question: does PHPStorm fold all the uses or now I'll have a folded use section for each group? |
@malarzm Yes, it does 🎉 I'm gonna assume since 2019.3, as per this article:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may be 👍 on this as PHPStorm works correctly
Thanks @carusogabriel ! |
Thanks @carusogabriel ! |
PSR-12 is an extension of the PSR-2 set of rules
that aims to standardize the code style.
As per PSR-12, under the item 3:
For context on why this was voted in the past, see #9.