PHP Classes

File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Generic/Docs/CodeAnalysis/UnconditionalIfStatementStandard.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/UnconditionalIfStatementStandard.xml   Download  
File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Generic/Docs/CodeAnalysis/UnconditionalIfStatementStandard.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: 918 bytes
 

Contents

Class file image Download
<documentation title="Unconditional If Statements"> <standard> <![CDATA[ If statements that are always evaluated should not be used. ]]> </standard> <code_comparison> <code title="Valid: An if statement that only executes conditionally."> <![CDATA[ if (<em>$test</em>) { $var = 1; } ]]> </code> <code title="Invalid: An if statement that is always performed."> <![CDATA[ if (<em>true</em>) { $var = 1; } ]]> </code> </code_comparison> <code_comparison> <code title="Valid: An if statement that only executes conditionally."> <![CDATA[ if (<em>$test</em>) { $var = 1; } ]]> </code> <code title="Invalid: An if statement that is never performed."> <![CDATA[ if (<em>false</em>) { $var = 1; } ]]> </code> </code_comparison> </documentation>