Code Duplication    Length = 3-4 lines in 2 locations

includes/diff/DiffEngine.php 2 locations

@@ 462-464 (lines=3) @@
459
		$starty = $snake[1];
460
461
		// the middle snake is part of the LCS, store it
462
		for ( $i = 0; $i < $len; ++$i ) {
463
			$this->removed[$startx + $i] = $this->added[$starty + $i] = false;
464
		}
465
466
		if ( $d > 1 ) {
467
			return $len
@@ 479-482 (lines=4) @@
476
			 * above, now we need to save all the lines before the difference.
477
			 */
478
			$max = min( $startx - $bottoml1, $starty - $bottoml2 );
479
			for ( $i = 0; $i < $max; ++$i ) {
480
				$this->removed[$bottoml1 + $i] =
481
					$this->added[$bottoml2 + $i] = false;
482
			}
483
484
			return $max + $len;
485
		}