]> git.openstreetmap.org Git - nominatim.git/commitdiff
add a note about variable naming for PHP
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 21 Jul 2018 06:47:37 +0000 (08:47 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 21 Jul 2018 06:47:37 +0000 (08:47 +0200)
CONTRIBUTING.md

index 242a9d6f55fb27ce2ba68c97d8e6c671fccb29b9..cd8d1cc1bd7c16d042b356eb385f116d787052fa 100644 (file)
@@ -78,6 +78,8 @@ are in process of consolidating the style. The following rules apply:
    * no spaces after opening and before closing bracket
    * leave out space between a function name and bracket
      but add one between control statement(if, while, etc.) and bracket
+ * for PHP variables use CamelCase with a prefixing letter indicating the type
+   (i - integer, f - float, a - array, s - string, o - object)
 
 The coding style is enforced with PHPCS and can be tested with: