mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Fix lint in golden PHP generator.
Causing tests to fail.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user