From 52b6a5b2a2b4c2f342cbee0474e64394e1ec0a21 Mon Sep 17 00:00:00 2001 From: "Mika Epstein (Ipstenu)" Date: Thu, 20 Jun 2019 10:57:41 +0200 Subject: [PATCH 1/4] Document YodaConditionals you must --- WordPress/Docs/PHP/YodaConditionsStandard.xml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 WordPress/Docs/PHP/YodaConditionsStandard.xml diff --git a/WordPress/Docs/PHP/YodaConditionsStandard.xml b/WordPress/Docs/PHP/YodaConditionsStandard.xml new file mode 100644 index 0000000000..484b419f88 --- /dev/null +++ b/WordPress/Docs/PHP/YodaConditionsStandard.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + \ No newline at end of file From 41aa7d571645693f9a2deed46439a4bdafd8c2fd Mon Sep 17 00:00:00 2001 From: "Mika Epstein (Ipstenu)" Date: Thu, 20 Jun 2019 12:01:36 +0200 Subject: [PATCH 2/4] requested fixes --- WordPress/Docs/PHP/YodaConditionsStandard.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WordPress/Docs/PHP/YodaConditionsStandard.xml b/WordPress/Docs/PHP/YodaConditionsStandard.xml index 484b419f88..c9fe1ee819 100644 --- a/WordPress/Docs/PHP/YodaConditionsStandard.xml +++ b/WordPress/Docs/PHP/YodaConditionsStandard.xml @@ -1,21 +1,21 @@ - + - + - + Date: Thu, 20 Jun 2019 13:34:30 +0200 Subject: [PATCH 3/4] End of line and whitespace --- WordPress/Docs/PHP/YodaConditionsStandard.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WordPress/Docs/PHP/YodaConditionsStandard.xml b/WordPress/Docs/PHP/YodaConditionsStandard.xml index c9fe1ee819..0b0fe17f3a 100644 --- a/WordPress/Docs/PHP/YodaConditionsStandard.xml +++ b/WordPress/Docs/PHP/YodaConditionsStandard.xml @@ -2,7 +2,7 @@ @@ -23,4 +23,4 @@ if ( $the_force === false ) { ]]> - \ No newline at end of file + From 76a82393f523bff4e77e2b5b2f19c9242f999c12 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 16 May 2022 14:58:06 +0200 Subject: [PATCH 4/4] Docs/YodaConditions: minor fixes after review --- WordPress/Docs/PHP/YodaConditionsStandard.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/WordPress/Docs/PHP/YodaConditionsStandard.xml b/WordPress/Docs/PHP/YodaConditionsStandard.xml index 0b0fe17f3a..169cbcc368 100644 --- a/WordPress/Docs/PHP/YodaConditionsStandard.xml +++ b/WordPress/Docs/PHP/YodaConditionsStandard.xml @@ -1,23 +1,23 @@ - + true === $the_force ) { $victorious = you_will( $be ); } ]]> - + $the_force === false ) { $victorious = you_will_not( $be ); } ]]>