PHP Classes

File: vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/ObjectOperatorSpacingStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/ObjectOperatorSpacingStandard.xml   Download  
File: vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/ObjectOperatorSpacingStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: 2 days ago
Size: 618 bytes
 

Contents

Class file image Download
<documentation title="Object Operator Spacing"> <standard> <![CDATA[ The object operators (->, ?->, ::) should not have any spaces around them, though new lines are allowed except for use with the `::class` constant. ]]> </standard> <code_comparison> <code title="Valid: No spaces around the object operator."> <![CDATA[ $foo<em></em>-><em></em>bar(); ]]> </code> <code title="Invalid: Whitespace surrounding the object operator."> <![CDATA[ $foo<em> </em>?-><em> </em>bar(); ]]> </code> </code_comparison> </documentation>