Skip to content

Commit

Permalink
style: add Squiz.Strings.DoubleQuoteUsage to phpcs.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
MHajoha committed Nov 19, 2024
1 parent f898165 commit b9a5d85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
<exclude name="moodle.Commenting.TodoComment"/>
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration"/>
</rule>
<!-- Moodle prefers single-quoted strings.
https://moodledev.io/general/development/policies/codingstyle#strings -->
<rule ref="Squiz.Strings.DoubleQuoteUsage">
<!-- But string interpolation is fine. -->
<exclude name="Squiz.Strings.DoubleQuoteUsage.ContainsVar"/>
</rule>
</ruleset>

0 comments on commit b9a5d85

Please sign in to comment.