PHP Classes

File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Generic/Docs/CodeAnalysis/JumbledIncrementerStandard.xml

Recommend this page to a friend!
  Classes of Simo   CodeIgniter Plugin for Z-Ray   zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Generic/Docs/CodeAnalysis/JumbledIncrementerStandard.xml   Download  
File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Generic/Docs/CodeAnalysis/JumbledIncrementerStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CodeIgniter Plugin for Z-Ray
Show CodeIgniter application information in Z-Ray
Author: By
Last change:
Date: 2 years 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>