Change to two spaces

This commit is contained in:
Oliver Davies 2024-09-08 23:09:54 +01:00
parent 2537fe2052
commit ed60ab964c
556 changed files with 2252 additions and 2252 deletions

View file

@ -1,12 +1,12 @@
---
title: >
Camel-case or snake-case for Drupal code?
Camel-case or snake-case for Drupal code?
pubDate: 2023-04-19
permalink: >-
archive/2023/04/19/camel-case-or-snake-case-for-drupal-code
archive/2023/04/19/camel-case-or-snake-case-for-drupal-code
tags:
- drupal
- php
- drupal
- php
---
For some time, [Drupal's PHP coding standards](https://www.drupal.org/docs/develop/standards/php/php-coding-standards#s-functions-and-variables) allows for writing variables in either snake-case (e.g. `$my_variable`) or lower camel-case (`e.g. $myVariable`).