Fix lint in golden PHP generator.

Causing tests to fail.
This commit is contained in:
Neil Fraser
2019-08-01 17:00:07 -07:00
committed by Neil Fraser
parent 939bbd072b
commit b6947976d7

View File

@@ -778,7 +778,7 @@ function text_get_substring($text, $where1, $at1, $where2, $at2) {
$at1 = strlen($text) - 1 - $at1;
} else if ($where1 == 'FIRST') {
$at1 = 0;
} else if ($where1 != 'FROM_START'){
} else if ($where1 != 'FROM_START') {
throw new Exception('Unhandled option (text_get_substring).');
}
$length = 0;
@@ -1296,7 +1296,7 @@ function lists_get_sublist($list, $where1, $at1, $where2, $at2) {
$at1 = count($list) - 1 - $at1;
} else if ($where1 == 'FIRST') {
$at1 = 0;
} else if ($where1 != 'FROM_START'){
} else if ($where1 != 'FROM_START') {
throw new Exception('Unhandled option (lists_get_sublist).');
}
$length = 0;