PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/JumbledIncrementerStandard.xml

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

Contents

Class file image Download
<documentation title="Jumbled Incrementers"> <standard> <![CDATA[ Incrementers in nested loops should use different variable names. ]]> </standard> <code_comparison> <code title="Valid: Two different variables being used to increment."> <![CDATA[ for ($i = 0; $i < 10; <em>$i++</em>) { for ($j = 0; $j < 10; <em>$j++</em>) { } } ]]> </code> <code title="Invalid: Inner incrementer is the same variable name as the outer one."> <![CDATA[ for ($i = 0; $i < 10; <em>$i++</em>) { for ($j = 0; $j < 10; <em>$i++</em>) { } } ]]> </code> </code_comparison> </documentation>