File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ protected function linesFromJsonFile($file)
133
133
array_keys ($ json ),
134
134
);
135
135
$ result = [];
136
- $ searchRange = 2 ;
136
+ $ searchRange = 5 ;
137
137
138
138
foreach ($ encoded as $ index => $ keys ) {
139
139
// Pretty likely to be on the line that is the index, go happy path first
@@ -142,7 +142,7 @@ protected function linesFromJsonFile($file)
142
142
continue ;
143
143
}
144
144
145
- // Search around the index, like to be within 2 lines
145
+ // Search around the index, likely to be within $searchRange lines
146
146
$ start = max (0 , $ index - $ searchRange );
147
147
$ end = min ($ index + $ searchRange , count ($ lines ) - 1 );
148
148
$ current = $ start ;
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ $translator = new class
133
133
array_keys($json),
134
134
);
135
135
$result = [];
136
- $searchRange = 2 ;
136
+ $searchRange = 5 ;
137
137
138
138
foreach ($encoded as $index => $keys) {
139
139
// Pretty likely to be on the line that is the index, go happy path first
@@ -142,7 +142,7 @@ $translator = new class
142
142
continue;
143
143
}
144
144
145
- // Search around the index, like to be within 2 lines
145
+ // Search around the index, likely to be within $searchRange lines
146
146
$start = max(0, $index - $searchRange);
147
147
$end = min($index + $searchRange, count($lines) - 1);
148
148
$current = $start;
You can’t perform that action at this time.
0 commit comments