Skip to content

Commit 09d0c4c

Browse files
committed
added '
1 parent 0ef9663 commit 09d0c4c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/Diff/SequenceMatcher.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -533,13 +533,13 @@ public function getGroupedOpcodes($context=3)
533533
);
534534
}
535535

536-
if($opCodes[0][0] == 'equal') {
537-
$opCodes[0] = array(
538-
$opCodes[0][0],
539-
max($opCodes[0][1], $opCodes[0][2] - $context),
540-
$opCodes[0][2],
541-
max($opCodes[0][3], $opCodes[0][4] - $context),
542-
$opCodes[0][4]
536+
if($opCodes['0']['0'] == 'equal') {
537+
$opCodes['0'] = array(
538+
$opCodes['0']['0'],
539+
max($opCodes['0']['1'], $opCodes['0']['2'] - $context),
540+
$opCodes['0']['2'],
541+
max($opCodes['0']['3'], $opCodes['0']['4'] - $context),
542+
$opCodes['0']['4']
543543
);
544544
}
545545

@@ -582,7 +582,7 @@ public function getGroupedOpcodes($context=3)
582582
);
583583
}
584584

585-
if(!empty($group) && !(count($group) == 1 && $group[0][0] == 'equal')) {
585+
if(!empty($group) && !(count($group) == 1 && $group['0']['0'] == 'equal')) {
586586
$groups[] = $group;
587587
}
588588

0 commit comments

Comments
 (0)