Skip to content

Commit f83010f

Browse files
authored
Merge pull request #136 from PHPCSStandards/feature/squiz-controlsig-minor-test-tweak
Squiz/ControlSignature: add missing property reset
2 parents 8faa7c3 + b8065eb commit f83010f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc

+3
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,9 @@ $r = match ($x) {
305305

306306
$r = match($x){1 => 1};
307307

308+
// Reset property.
309+
// @codingStandardsChangeSetting Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 1
310+
308311
// Intentional parse error. This should be the last test in the file.
309312
foreach
310313
// Some unrelated comment.

src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed

+3
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ $r = match ($x) {
309309
$r = match ($x) {
310310
1 => 1};
311311

312+
// Reset property.
313+
// @codingStandardsChangeSetting Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 1
314+
312315
// Intentional parse error. This should be the last test in the file.
313316
foreach
314317
// Some unrelated comment.

0 commit comments

Comments
 (0)