PHP code style rule to enforce single quotes

This commit is contained in:
marc tobias 2017-10-21 14:52:58 +02:00 committed by Sarah Hoffmann
parent 0c053431f5
commit 71602afcad

View File

@ -129,6 +129,23 @@
<!-- **************************************************************
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
************************************************************** -->