PHP Classes

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

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   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: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year ago
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>