From a949e13ab528324f2d81ffc5a372d73cc24ecfa0 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 7 Dec 2023 16:30:33 +0100 Subject: [PATCH] Squiz/ControlSignature: add missing property reset --- .../Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc | 3 +++ .../Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc b/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc index a9302d29ea..f20ec68be1 100644 --- a/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc +++ b/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc @@ -305,6 +305,9 @@ $r = match ($x) { $r = match($x){1 => 1}; +// Reset property. +// @codingStandardsChangeSetting Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 1 + // Intentional parse error. This should be the last test in the file. foreach // Some unrelated comment. diff --git a/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed b/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed index 0343535609..087ca9462a 100644 --- a/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed +++ b/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.inc.fixed @@ -309,6 +309,9 @@ $r = match ($x) { $r = match ($x) { 1 => 1}; +// Reset property. +// @codingStandardsChangeSetting Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 1 + // Intentional parse error. This should be the last test in the file. foreach // Some unrelated comment.