File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -344,18 +344,18 @@ public function getOpCodes(): array
344
344
}
345
345
346
346
if ($ this ->options ['ignoreLines ' ]) {
347
- $ part1 = array_slice ($ this ->old , $ i , $ ai - $ i );
348
- $ part2 = array_slice ($ this ->new , $ j , $ bj - $ j );
347
+ $ slice1 = array_slice ($ this ->old , $ i , $ ai - $ i );
348
+ $ slice2 = array_slice ($ this ->new , $ j , $ bj - $ j );
349
349
350
350
if ($ this ->options ['ignoreLines ' ] == 2 ) {
351
351
array_walk (
352
- $ part1 ,
352
+ $ slice1 ,
353
353
function (&$ line ) {
354
354
$ line = trim ($ line );
355
355
}
356
356
);
357
357
array_walk (
358
- $ part2 ,
358
+ $ slice2 ,
359
359
function (&$ line ) {
360
360
$ line = trim ($ line );
361
361
}
@@ -364,8 +364,8 @@ function (&$line) {
364
364
}
365
365
366
366
if (
367
- ($ tag == 'delete ' && implode ('' , $ part1 ) == '' ) ||
368
- ($ tag == 'insert ' && implode ('' , $ part2 ) == '' )
367
+ ($ tag == 'delete ' && implode ('' , $ slice1 ) == '' ) ||
368
+ ($ tag == 'insert ' && implode ('' , $ slice2 ) == '' )
369
369
) {
370
370
$ tag = 'ignore ' ;
371
371
}
You can’t perform that action at this time.
0 commit comments