Skip to content

Commit 6f057bf

Browse files
committed
use elseif, not else if
1 parent 277c3b4 commit 6f057bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/jblond/Diff/SequenceMatcher.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public function findLongestMatch($alo, $ahi, $blo, $bhi)
284284
if($j < $blo) {
285285
continue;
286286
}
287-
else if($j >= $bhi) {
287+
elseif($j >= $bhi) {
288288
break;
289289
}
290290

@@ -499,10 +499,10 @@ public function getOpCodes()
499499
if($i < $ai && $j < $bj) {
500500
$tag = 'replace';
501501
}
502-
else if($i < $ai) {
502+
elseif($i < $ai) {
503503
$tag = 'delete';
504504
}
505-
else if($j < $bj) {
505+
elseif($j < $bj) {
506506
$tag = 'insert';
507507
}
508508

@@ -697,7 +697,7 @@ private function tupleSort($a, $b)
697697
if($a[$i] < $b[$i]) {
698698
return -1;
699699
}
700-
else if($a[$i] > $b[$i]) {
700+
elseif($a[$i] > $b[$i]) {
701701
return 1;
702702
}
703703
}

0 commit comments

Comments
 (0)