Skip to content

Commit

Permalink
DisallowShortTernary: improve docs
Browse files Browse the repository at this point in the history
The valid example line was a bit too long... oops...
  • Loading branch information
jrfnl committed Sep 20, 2019
1 parent 2f396d1 commit 54f1017
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 54f1017

Please sign in to comment.