File "DisallowBooleanStatementUnitTest.inc"
Full Path: /home/warrior1/public_html/languages/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.inc
File size: 353 bytes
MIME-type: text/x-php
Charset: utf-8
<?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);
}
?>