Skip to content

Commit

Permalink
Squiz/ControlSignature: fix up old-style property set annotations in …
Browse files Browse the repository at this point in the history
…tests
  • Loading branch information
jrfnl authored and DannyvdSluijs committed Apr 29, 2024
1 parent b0e43a8 commit 091c2fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ else :
echo 'not 1';
endif;

// @codingStandardsChangeSetting Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 0
// phpcs:set Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 0

if ($a == 5):
echo "a equals 5";
Expand Down Expand Up @@ -305,7 +305,7 @@ $r = match ($x) {

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

// @codingStandardsChangeSetting Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 2
// phpcs:set Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 2
if ($a == 5):
echo "a equals 5";
echo "...";
Expand All @@ -317,7 +317,7 @@ else :
endif;

// Reset property.
// @codingStandardsChangeSetting Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 1
// phpcs:set Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 1

// Intentional parse error. This should be the last test in the file.
foreach
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ else :
echo 'not 1';
endif;

// @codingStandardsChangeSetting Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 0
// phpcs:set Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 0

if ($a == 5):
echo "a equals 5";
Expand Down Expand Up @@ -309,7 +309,7 @@ $r = match ($x) {
$r = match ($x) {
1 => 1};

// @codingStandardsChangeSetting Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 2
// phpcs:set Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 2
if ($a == 5) :
echo "a equals 5";
echo "...";
Expand All @@ -321,7 +321,7 @@ else :
endif;

// Reset property.
// @codingStandardsChangeSetting Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 1
// phpcs:set Squiz.ControlStructures.ControlSignature requiredSpacesBeforeColon 1

// Intentional parse error. This should be the last test in the file.
foreach
Expand Down

0 comments on commit 091c2fb

Please sign in to comment.