Code Duplication    Length = 10-10 lines in 2 locations

htdocs/modules/system/class/thumbs/phpthumb.bmp.php 2 locations

@@ 498-507 (lines=10) @@
495
											$pixeldataoffset = strlen($BMPpixelData); // force to exit loop just in case
496
											break;
497
498
										case 2:
499
											// delta - The 2 bytes following the escape contain unsigned values
500
											// indicating the horizontal and vertical offsets of the next pixel
501
											// from the current position.
502
											$colincrement = $this->LittleEndian2Int(substr($BMPpixelData, $pixeldataoffset++, 1));
503
											$rowincrement = $this->LittleEndian2Int(substr($BMPpixelData, $pixeldataoffset++, 1));
504
											$col = ($pixelcounter % $thisfile_bmp_header_raw['width']) + $colincrement;
505
											$row = ($thisfile_bmp_header_raw['height'] - 1 - (($pixelcounter - $col) / $thisfile_bmp_header_raw['width'])) - $rowincrement;
506
											$pixelcounter = ($row * $thisfile_bmp_header_raw['width']) + $col;
507
											break;
508
509
										default:
510
											// In absolute mode, the first byte is zero and the second byte is a
@@ 574-583 (lines=10) @@
571
											$pixeldataoffset = strlen($BMPpixelData); // force to exit loop just in case
572
											break;
573
574
										case 2:
575
											// delta - The 2 bytes following the escape contain unsigned values
576
											// indicating the horizontal and vertical offsets of the next pixel
577
											// from the current position.
578
											$colincrement = $this->LittleEndian2Int(substr($BMPpixelData, $pixeldataoffset++, 1));
579
											$rowincrement = $this->LittleEndian2Int(substr($BMPpixelData, $pixeldataoffset++, 1));
580
											$col = ($pixelcounter % $thisfile_bmp_header_raw['width']) + $colincrement;
581
											$row = ($thisfile_bmp_header_raw['height'] - 1 - (($pixelcounter - $col) / $thisfile_bmp_header_raw['width'])) - $rowincrement;
582
											$pixelcounter = ($row * $thisfile_bmp_header_raw['width']) + $col;
583
											break;
584
585
										default:
586
											// In absolute mode, the first byte is zero. The second byte contains the number