From e189e3a450ddd4244a6a1df8ebc6a977a95fe863 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 11 Jun 2022 18:08:25 +0200 Subject: [PATCH] Docs: fix invalid XML docs for three sniffs Each of these three sniffs had a `` block containing _three_ `` elements instead of two. Discovered by validating the docs against the XSD schema created by the amazing dingo-d. The XSD schema is now available in [PHPCSDevTools](https://github.com/PHPCSStandards/PHPCSDevTools) 1.2.0 as discussed in 3585. If you're interested, I could refresh (a variation of) PR 2872 to add XML doc validation against the schema to the GH Actions checks. --- .../Generic/Docs/Classes/OpeningBraceSameLineStandard.xml | 8 ++++++++ .../Generic/Docs/Formatting/SpaceAfterNotStandard.xml | 7 ++----- .../WhiteSpace/ArbitraryParenthesesSpacingStandard.xml | 7 ++----- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml b/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml index 6226a3fff6..6fa08be7a4 100644 --- a/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml +++ b/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml @@ -15,6 +15,14 @@ class Foo { { +} + ]]> + + + + + { } ]]> diff --git a/src/Standards/Generic/Docs/Formatting/SpaceAfterNotStandard.xml b/src/Standards/Generic/Docs/Formatting/SpaceAfterNotStandard.xml index dd3e773118..aea863695e 100644 --- a/src/Standards/Generic/Docs/Formatting/SpaceAfterNotStandard.xml +++ b/src/Standards/Generic/Docs/Formatting/SpaceAfterNotStandard.xml @@ -10,13 +10,10 @@ if (! $someVar || ! $x instanceOf stdClass) {}; ]]> - + $someVar || !$x instanceOf stdClass) {}; - ]]> - - - $someVar || ! $x instanceOf stdClass) {}; ]]> diff --git a/src/Standards/Generic/Docs/WhiteSpace/ArbitraryParenthesesSpacingStandard.xml b/src/Standards/Generic/Docs/WhiteSpace/ArbitraryParenthesesSpacingStandard.xml index 30e0def93c..338c838933 100644 --- a/src/Standards/Generic/Docs/WhiteSpace/ArbitraryParenthesesSpacingStandard.xml +++ b/src/Standards/Generic/Docs/WhiteSpace/ArbitraryParenthesesSpacingStandard.xml @@ -10,13 +10,10 @@ $a = (null !== $extra); ]]> - + - - -