Skip to content

Commit b9a5d85

Browse files
committed
style: add Squiz.Strings.DoubleQuoteUsage to phpcs.xml
Moodle prefers single-quoted strings. See: https://moodledev.io/general/development/policies/codingstyle#strings
1 parent f898165 commit b9a5d85

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

phpcs.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@
44
<exclude name="moodle.Commenting.TodoComment"/>
55
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration"/>
66
</rule>
7+
<!-- Moodle prefers single-quoted strings.
8+
https://moodledev.io/general/development/policies/codingstyle#strings -->
9+
<rule ref="Squiz.Strings.DoubleQuoteUsage">
10+
<!-- But string interpolation is fine. -->
11+
<exclude name="Squiz.Strings.DoubleQuoteUsage.ContainsVar"/>
12+
</rule>
713
</ruleset>

0 commit comments

Comments
 (0)