Skip to content

Commit

Permalink
Use elseif instead of else if
Browse files Browse the repository at this point in the history
  • Loading branch information
mohorev committed Oct 25, 2014
1 parent bb85508 commit 329e6ee
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build/controllers/TranslationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,11 @@ public function highlightDiff($diff)
foreach ($lines as $key => $val) {
if (mb_substr($val, 0, 1, 'utf-8') === '@') {
$lines[$key] = '<span class="info">' . Html::encode($val) . '</span>';
}
else if (mb_substr($val, 0, 1, 'utf-8') === '+') {
} elseif (mb_substr($val, 0, 1, 'utf-8') === '+') {
$lines[$key] = '<ins>' . Html::encode($val) . '</ins>';
}
else if (mb_substr($val, 0, 1, 'utf-8') === '-') {
} elseif (mb_substr($val, 0, 1, 'utf-8') === '-') {
$lines[$key] = '<del>' . Html::encode($val) . '</del>';
}
else {
} else {
$lines[$key] = Html::encode($val);
}
}
Expand Down

0 comments on commit 329e6ee

Please sign in to comment.