Code Duplication    Length = 5-6 lines in 2 locations

include/Text_Diff.php 2 locations

@@ 503-508 (lines=6) @@
500
                }
501
                $matches = $ymatches[$line];
502
                foreach ($matches as $y) {
503
                    if (empty($this->in_seq[$y])) {
504
                        $k = $this->_lcsPos($y);
505
                        assert($k > 0);
506
                        $ymids[$k] = $ymids[$k - 1];
507
                        break;
508
                    }
509
                }
510
511
                //                while (list($junk, $y) = each($matches)) {
@@ 520-524 (lines=5) @@
517
                        $this->in_seq[$this->seq[$k]] = false;
518
                        $this->seq[$k]                = $y;
519
                        $this->in_seq[$y]             = 1;
520
                    } elseif (empty($this->in_seq[$y])) {
521
                        $k = $this->_lcsPos($y);
522
                        assert($k > 0);
523
                        $ymids[$k] = $ymids[$k - 1];
524
                    }
525
                }
526
            }
527
        }