Code Duplication    Length = 6-6 lines in 2 locations

includes/diff/DiffEngine.php 2 locations

@@ 567-572 (lines=6) @@
564
					}
565
566
					// check to see if we can cut down the diagonal range
567
					if ( $x >= $N && $end_forward > $k - 1 ) {
568
						$end_forward = $k - 1;
569
					} elseif ( $absy - $bottoml2 >= $M ) {
570
						$start_forward = $k + 1;
571
						$value_to_add_forward = 0;
572
					}
573
				}
574
575
				$start_diag = max( $value_to_add_backward + $start_backward, -$d );
@@ 638-643 (lines=6) @@
635
					$V0[$limit + $k] = $x;
636
637
					// check to see if we can cut down the diagonal range
638
					if ( $x >= $N && $end_forward > $k - 1 ) {
639
						$end_forward = $k - 1;
640
					} elseif ( $absy - $bottoml2 >= $M ) {
641
						$start_forward = $k + 1;
642
						$value_to_add_forward = 0;
643
					}
644
				}
645
646
				$start_diag = max( $value_to_add_backward + $start_backward, -$d );