From 948b2fbddd26f3e6a410169817f69e7029308779 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Thu, 4 Apr 2024 12:47:58 -0300 Subject: [PATCH 1/4] Generic/ArrayIndent: add XML documentation --- .../Docs/Arrays/ArrayIndentStandard.xml | 101 ++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml diff --git a/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml b/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml new file mode 100644 index 0000000000..5fffc44907 --- /dev/null +++ b/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml @@ -0,0 +1,101 @@ + + + + + + + [ + 1, + 2, + ]; +} + ]]> + + + [ + 1, + 2, + ]; +} + ]]> + + + + + + + + 1, + 2, + 3, +); + ]]> + + + 1, + 2, + 3, +); + ]]> + + + + + + + + +]; + ]]> + + + ]; + ]]> + + + + + + + + ); + ]]> + + + ); + ]]> + + + From 498983df5584c2ab0096124524545cff32fa3384 Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Thu, 10 Oct 2024 09:08:38 -0300 Subject: [PATCH 2/4] Apply suggestions from code review Co-authored-by: Juliette <663378+jrfnl@users.noreply.github.com> --- src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml b/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml index 5fffc44907..66d45d60fa 100644 --- a/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml +++ b/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml @@ -5,7 +5,7 @@ ]]> - + - + Date: Thu, 10 Oct 2024 09:02:54 -0300 Subject: [PATCH 3/4] Implement code review suggestions --- .../Docs/Arrays/ArrayIndentStandard.xml | 39 +++++++++++-------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml b/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml index 66d45d60fa..ffb6e35c36 100644 --- a/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml +++ b/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml @@ -1,11 +1,11 @@ - + [ + 1, + 2, +]; ]]> - + - + 1, - 2, - 3, + 1, + 2, + 3, ); ]]> - + 1, + 1, 2, - 3, + 3, ); ]]> - + ; ]]> - + - + ); ]]> - + Date: Thu, 31 Oct 2024 13:11:11 +0100 Subject: [PATCH 4/4] Generic/ArrayIndent: tweak the text of the docs some more --- .../Docs/Arrays/ArrayIndentStandard.xml | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml b/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml index ffb6e35c36..0312a70f15 100644 --- a/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml +++ b/src/Standards/Generic/Docs/Arrays/ArrayIndentStandard.xml @@ -5,8 +5,13 @@ ]]> - + [ + 1, + 2, +]; + if ($condition) { $a = [ @@ -15,13 +20,9 @@ if ($condition) { ]; } -$b = [ - 1, - 2, -]; ]]> - + - + 1, @@ -48,11 +49,11 @@ $a = array( ); ]]> - + 1, - 2, + 2, 3, ); ]]> @@ -60,11 +61,11 @@ $a = array( - + ; ]]> - + - + ); ]]> - +