Skip to content

Commit e6d3ed4

Browse files
rodrigoprimojrfnl
andcommitted
Apply suggestions from code review
Co-authored-by: Juliette <663378+jrfnl@users.noreply.github.com>
1 parent dd24ea3 commit e6d3ed4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

WordPress/Docs/CodeAnalysis/AssignmentInTernaryConditionStandard.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
<code_comparison>
1414
<code title="Valid: Comparison operator used in ternary condition.">
1515
<![CDATA[
16-
$mode = ( $a <em>===</em> 'a' ) ? 'b' : 'c';
16+
echo ( $a <em>===</em> 'a' ) ? 'b' : 'c';
1717
]]>
1818
</code>
19-
<code title="Invalid: Assignment in parenthesized ternary condition.">
19+
<code title="Invalid: Assignment in ternary condition.">
2020
<![CDATA[
21-
$mode = ( $a <em>=</em> 'a' ) ? 'b' : 'c';
21+
echo ( $a <em>=</em> 'a' ) ? 'b' : 'c';
2222
]]>
2323
</code>
2424
</code_comparison>

0 commit comments

Comments
 (0)