Skip to content

Commit

Permalink
DisallowShortTernary: improve docs (#1800)
Browse files Browse the repository at this point in the history
DisallowShortTernary: improve docs
  • Loading branch information
GaryJones authored Sep 22, 2019
2 parents 81a7fb2 + 54f1017 commit 484335b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WordPress/Docs/PHP/DisallowShortTernaryStandard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<code_comparison>
<code title="Valid: long ternary.">
<![CDATA[
$height = ! empty( $data['height'] ) <em>?</em> $data['height'] <em>:</em> 0;
$height = ! empty( $data['height'] ) <em>?</em>
$data['height'] <em>:</em> 0;
]]>
</code>
<code title="Invalid: short ternary.">
Expand Down

0 comments on commit 484335b

Please sign in to comment.