Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
use statements are supposed to be ordered alphabetically
Comment | File | Size | Author |
---|---|---|---|
#2 | follow_coding_standards-2885792-2.patch | 6.68 KB | vegantriathlete |
Comments
Comment #2
vegantriathleteComment #3
cilefen CreditAttribution: cilefen commentedHi @vegantriathlete:
Thanks for suggesting this improvement. Check out the parent issue—standards fixes are done for all of core and also must come with a phpcs rule. I think in this case there may be no such rule yet.
Comment #4
Chi CreditAttribution: Chi commentedCould you please add a reference on documentation about this. Do we have officially approved coding standard for this?
Comment #5
vegantriathlete@Chi: As it turns out I don't think there is an official standard about how to order use statements. I think that I got the idea that there was one when I submitted a patch for a different module and the maintainer told me to sort my use statements alphabetically.
Comment #6
Chi CreditAttribution: Chi commented@vegantriathlete That means there is notihng to fix here.
The documetnation says:
Feel free to submit a proposal for this subject.
https://www.drupal.org/project/coding_standards
Comment #7
cilefen CreditAttribution: cilefen commented