]> git.openstreetmap.org Git - nominatim.git/blobdiff - phpcs.xml
Merge pull request #928 from EdwardBetts/spelling
[nominatim.git] / phpcs.xml
index 9f705d83fb54375b3438345150d85377442c86a6..8f92f7c99078b87ca7f0bfd213fe93bfe5c44315 100644 (file)
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -10,8 +10,8 @@
 
   <rule ref="Generic.Files.LineLength">
     <properties>
 
   <rule ref="Generic.Files.LineLength">
     <properties>
-     <property name="lineLimit" value="199"/>
-     <property name="absoluteLineLimit" value="199"/>
+     <property name="lineLimit" value="194"/>
+     <property name="absoluteLineLimit" value="194"/>
     </properties>
   </rule>
 
     </properties>
   </rule>
 
 
 
 
 
 
 
+
+  <!-- **************************************************************
+       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
        ************************************************************** -->