Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.inc
<?php

trySomething() || trySomethingElse();
if (trySomething() === FALSE) {
    trySomethingElse();
}

$success || fail();
if ($success === FALSE) {
    fail();
}

$foo = ($bar || $foo);

doSomething() || die();

if ($something || somethingElse()) {
    while ($foo && $bar) {
    }

    do {
        // Code here.
    }
    while ($foo && $bar);
}

?>