Code Duplication    Length = 5-6 lines in 2 locations

class/Text_Diff.php 2 locations

@@ 509-514 (lines=6) @@
506
                }
507
                $matches = $ymatches[$line];
508
                foreach ($matches as $y) {
509
                    if (empty($this->in_seq[$y])) {
510
                        $k = $this->_lcsPos($y);
511
                        assert($k > 0);
512
                        $ymids[$k] = $ymids[$k - 1];
513
                        break;
514
                    }
515
                }
516
517
                while (list($junk, $y) = each($matches)) {
@@ 525-529 (lines=5) @@
522
                        $this->in_seq[$this->seq[$k]] = false;
523
                        $this->seq[$k]                = $y;
524
                        $this->in_seq[$y]             = 1;
525
                    } elseif (empty($this->in_seq[$y])) {
526
                        $k = $this->_lcsPos($y);
527
                        assert($k > 0);
528
                        $ymids[$k] = $ymids[$k - 1];
529
                    }
530
                }
531
            }
532
        }