Code Duplication    Length = 5-5 lines in 2 locations

app/Vendor/m2brimagem.php 2 locations

@@ 746-750 (lines=5) @@
743
	{
744
	 if ($BMP['bits_per_pixel'] == 24)
745
		$COLOR = @unpack("V",substr($IMG,$P,3).$VIDE);
746
	 elseif ($BMP['bits_per_pixel'] == 16)
747
	 { 
748
		$COLOR = @unpack("n",substr($IMG,$P,2));
749
		$COLOR[1] = $PALETTE[$COLOR[1]+1];
750
	 }
751
	 elseif ($BMP['bits_per_pixel'] == 8)
752
	 { 
753
		$COLOR = @unpack("n",$VIDE.substr($IMG,$P,1));
@@ 751-755 (lines=5) @@
748
		$COLOR = @unpack("n",substr($IMG,$P,2));
749
		$COLOR[1] = $PALETTE[$COLOR[1]+1];
750
	 }
751
	 elseif ($BMP['bits_per_pixel'] == 8)
752
	 { 
753
		$COLOR = @unpack("n",$VIDE.substr($IMG,$P,1));
754
		$COLOR[1] = $PALETTE[$COLOR[1]+1];
755
	 }
756
	 elseif ($BMP['bits_per_pixel'] == 4)
757
	 {
758
		$COLOR = @unpack("n",$VIDE.substr($IMG,floor($P),1));