PHP 8.2.31
Preview: UnconditionalIfStatementStandard.xml Size: 918 B
/opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/CodeAnalysis/UnconditionalIfStatementStandard.xml

<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>

Directory Contents

Dirs: 0 × Files: 11

Name Size Perms Modified Actions
582 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.11 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
549 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
654 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
746 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
675 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.05 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
918 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
631 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
601 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
767 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).