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.
part of #2011290: [meta] standards cleanup to get ready for getting into core
Motivation
Lots of classes are using properties with underscore pattern like in ConfigGroupMapper.php
private $base_path = '';
Proposed resolution
Change properties to camelCase.
Remaining tasks
- verify in the standards properties should be camelCase
- make initial patch
User interface changes
No
API changes
No
Comment | File | Size | Author |
---|---|---|---|
#1 | camelCase-2028127-1.patch | 10.56 KB | lazysoundsystem |
Comments
Comment #1
lazysoundsystem CreditAttribution: lazysoundsystem commentedCouldn't find a categorical statement of the coding standards for camelCase, but for this in the coder module's
good.php
:Anyway, here's a patch applying that to some properties that were in an inconsistent state.
Comment #2
YesCT CreditAttribution: YesCT commentedI found it!
https://drupal.org/node/608152#naming
Comment #3
Gábor HojtsyYay, looks good! Committed to the module. You are getting to be on the credits of #1952394: Add configuration translation user interface module in core thanks to this :)
Comment #4
Gábor Hojtsy@YesCT and I also tested if you missed anything with:
Did not find matches. :) Looks like all covered.
Comment #5
YesCT CreditAttribution: YesCT commentedAll the property definitions that start with protected public private are all camel case. good.