PHP Classes

File: vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/DisallowShortTernaryStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Nolimitbuzz WP Theme   vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/DisallowShortTernaryStandard.xml   Download  
File: vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/DisallowShortTernaryStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Nolimitbuzz WP Theme
WordPress theme to used as start of new themes
Author: By
Last change:
Date: 27 days ago
Size: 520 bytes
 

Contents

Class file image Download
<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>