PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/IncrementDecrementSpacingStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/IncrementDecrementSpacingStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/IncrementDecrementSpacingStandard.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: Yesterday
Size: 738 bytes
 

Contents

Class file image Download
<documentation title="Increment Decrement Spacing"> <standard> <![CDATA[ There should be no whitespace between variables and increment/decrement operators. ]]> </standard> <code_comparison> <code title="Valid: No whitespace between variables and increment/decrement operators."> <![CDATA[ ++<em></em>$i; --<em></em>$i['key']['id']; ClassName::$prop<em></em>++; $obj->prop<em></em>--; ]]> </code> <code title="Invalid: Whitespace between variables and increment/decrement operators."> <![CDATA[ ++<em> </em>$i; --<em> </em>$i['key']['id']; ClassName::$prop<em> </em>++; $obj->prop<em> </em>--; ]]> </code> </code_comparison> </documentation>