File tree 1 file changed +17
-18
lines changed
1 file changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -173,14 +173,12 @@ private function chainB()
173
173
if ($ length >= 200 && count ($ this ->b2j [$ char ]) * 100 > $ length ) {
174
174
$ popularDict [$ char ] = 1 ;
175
175
unset($ this ->b2j [$ char ]);
176
- } else {
177
- $ this ->b2j [$ char ][] = $ i ;
176
+ continue ;
178
177
}
179
- } else {
180
- $ this ->b2j [$ char ] = [
181
- $ i ,
182
- ];
178
+ $ this ->b2j [$ char ][] = $ i ;
179
+ continue ;
183
180
}
181
+ $ this ->b2j [$ char ] = [$ i ];
184
182
}
185
183
186
184
// Remove leftovers
@@ -436,21 +434,22 @@ function ($aArray, $bArray) {
436
434
foreach ($ matchingBlocks as [$ list4 , $ list5 , $ list6 ]) {
437
435
if ($ i1 + $ k1 == $ list4 && $ j1 + $ k1 == $ list5 ) {
438
436
$ k1 += $ list6 ;
439
- } else {
440
- if ($ k1 ) {
441
- $ nonAdjacent [] = [
442
- $ i1 ,
443
- $ j1 ,
444
- $ k1 ,
445
- ];
446
- }
447
-
448
- $ i1 = $ list4 ;
449
- $ j1 = $ list5 ;
450
- $ k1 = $ list6 ;
437
+ continue ;
438
+ }
439
+ if ($ k1 ) {
440
+ $ nonAdjacent [] = [
441
+ $ i1 ,
442
+ $ j1 ,
443
+ $ k1 ,
444
+ ];
451
445
}
446
+
447
+ $ i1 = $ list4 ;
448
+ $ j1 = $ list5 ;
449
+ $ k1 = $ list6 ;
452
450
}
453
451
452
+
454
453
if ($ k1 ) {
455
454
$ nonAdjacent [] = [
456
455
$ i1 ,
You can’t perform that action at this time.
0 commit comments