]> git.openstreetmap.org Git - nominatim.git/commitdiff
PHP code style rule to enforce single quotes
authormarc tobias <mtmail@gmx.net>
Sat, 21 Oct 2017 12:52:58 +0000 (14:52 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 26 Oct 2017 19:03:17 +0000 (21:03 +0200)
phpcs.xml

index 2f4bc11823b89be57f01c1df771f00b33d08beda..8f92f7c99078b87ca7f0bfd213fe93bfe5c44315 100644 (file)
--- a/phpcs.xml
+++ b/phpcs.xml
 
 
 
 
 
 
+
+  <!-- **************************************************************
+       STRING QUOTING
+       ************************************************************** -->
+
+  <!-- Prefer single quoted strings -->
+  <rule ref="Squiz.Strings.DoubleQuoteUsage" />
+
+  <!-- We allow variabled inside double-quoted strings "abc $somevar" -->
+  <rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar">
+    <severity>0</severity>
+  </rule>
+
+
+
+
+
   <!-- **************************************************************
        CONTROL STRUCTURES
        ************************************************************** -->
   <!-- **************************************************************
        CONTROL STRUCTURES
        ************************************************************** -->