Skip to content

Commit 388b069

Browse files
Avoid string literals with double quotes (#37)
1 parent 4d103db commit 388b069

4 files changed

Lines changed: 14 additions & 0 deletions

File tree

Eventjet/ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@
9292
</rule>
9393
<rule ref="Generic.Strings.UnnecessaryStringConcat"/>
9494

95+
<!-- Avoid double quotes -->
96+
<rule ref="Squiz.Strings.DoubleQuoteUsage"/>
97+
9598
<!-- Forbid spaces in type casts -->
9699
<rule ref="Squiz.WhiteSpace.CastSpacing"/>
97100

php-cs-fixer-rules.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
],
7373
'phpdoc_trim' => true,
7474
'php_unit_data_provider_static' => true,
75+
'single_quote' => true,
7576
'single_space_around_construct' => true,
7677
'strict_comparison' => true,
7778
'trailing_comma_in_multiline' => [
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
echo "double quotes";
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
echo 'single quotes';

0 commit comments

Comments
 (0)