Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content
/
themes
/
storefront
/
vendor
/
wp-coding-standards
/
wpcs
/
WordPress
/
Docs
/
PHP
:
DisallowShortTernaryStandard.xml
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<documentation title="Disallow Short Ternaries"> <standard> <![CDATA[ The short ternary operator must not be used. ]]> </standard> <code_comparison> <code title="Valid: long ternary."> <![CDATA[ $height = ! empty( $data['height'] ) <em>?</em> $data['height'] <em>:</em> 0; ]]> </code> <code title="Invalid: short ternary."> <![CDATA[ $height = $data['height'] <em>? :</em> 0; ]]> </code> </code_comparison> </documentation>