mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
PHP code style rule to enforce single quotes
This commit is contained in:
committed by
Sarah Hoffmann
parent
0c053431f5
commit
71602afcad
17
phpcs.xml
17
phpcs.xml
@@ -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
|
CONTROL STRUCTURES
|
||||||
************************************************************** -->
|
************************************************************** -->
|
||||||
|
|||||||
Reference in New Issue
Block a user