Optimized checks order in conditions

This commit is contained in:
Alexander Makarov
2015-02-08 17:46:19 +03:00
parent af7ae33d5b
commit 6481d13494
19 changed files with 25 additions and 26 deletions

View File

@ -9,7 +9,7 @@
/* @var $end integer */
/* @var $handler \yii\web\ErrorHandler */
?>
<li class="<?php if (!$handler->isCoreFile($file) || $index === 1) echo 'application'; ?> call-stack-item"
<li class="<?php if ($index === 1 || !$handler->isCoreFile($file)) echo 'application'; ?> call-stack-item"
data-line="<?= (int) ($line - $begin) ?>">
<div class="element-wrap">
<div class="element">