When we were starting Commerce and Address we decided to break Drupal's coding standard in regards to variable naming, by mandating camelCase everywhere, instead of snake_case. The argument was that the library interfaces already imposed too many camelCase variables, giving us a very inconsistent end result.

Since then we've reduced the essential library interfaces for entities to getters only.
The Drupal interfaces are the ones that provide the setters now.

That means our argument is gone, and we should switch back. The resulting code will be uglier, but personal opinions are no basis for going against the ecosystem here.

Comments

bojanz created an issue. See original summary.

bojanz’s picture

Status: Active » Fixed

Done. That was a lot of search&replace.

  • bojanz committed 3f2425f on 8.x-1.x
    Issue #2610958: Start following the Drupal coding standard again
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.