From 7d8c9fe9c6126a52379c39bfce70d234ae7b1493 Mon Sep 17 00:00:00 2001 From: Christopher Kanitz Date: Tue, 17 May 2022 10:52:17 +0200 Subject: [PATCH] Docs/WordPress.WhiteSpace.OperatorSpacing (#1727) * Create OperatorSpacingStandard.xml Co-Authored-By: Juliette <663378+jrfnl@users.noreply.github.com> --- .../WhiteSpace/OperatorSpacingStandard.xml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 WordPress/Docs/WhiteSpace/OperatorSpacingStandard.xml diff --git a/WordPress/Docs/WhiteSpace/OperatorSpacingStandard.xml b/WordPress/Docs/WhiteSpace/OperatorSpacingStandard.xml new file mode 100644 index 0000000000..ca17e57ff5 --- /dev/null +++ b/WordPress/Docs/WhiteSpace/OperatorSpacingStandard.xml @@ -0,0 +1,57 @@ + + + + + + + === $b && $b === $c ) {} +if ( ! $var ) {} + ]]> + + + && $b === $c ) {} +if ( ! $var ) {} + +// Too little space. +if ( $a===$b &&$b ===$c ) {} +if ( !$var ) {} + ]]> + + + + + + && $b === $c +) {} + ]]> + + + + && $b === $c +) {} + ]]> + + + + + = 'foo'; +$all = 'foobar'; + ]]> + + + = 'foo'; +$all ='foobar'; + ]]> + + +