There's no coding standard for traits AFAICT.
Some questions:
- should the 'use FooTrait;' statements be sorted? and how: alphabetically?
- should there be a blank line or not between the class declaration and the trait import? I've seen both in core:
class Foo {
use MyTrait;
or
class Foo {
use MyTrait;
If we adopted this change, the Drupal Project would benefit by ...
Provide all proposed changes to the Drupal Coding standards → . Give a link to each section that will be changed, and show the current text and proposed text as in the following layout:
Add current text in blockquotes
Add proposed text in blockquotes
For a full explanation of these steps see the Coding Standards project page →
Active
Coding Standards
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.