Code Duplication    Length = 13-13 lines in 3 locations

app/Vendor/m2brimagem.php 3 locations

@@ 643-655 (lines=13) @@
640
		{
641
			case 'jpg':
642
			case 'jpeg':
643
			case 'bmp':
644
				if ( $destino ) 
645
				{
646
					imagejpeg( $this->img, $destino, $qualidade );
647
				} 
648
				else 
649
				{
650
					header( "Content-type: image/jpeg" );
651
					imagejpeg( $this->img, NULL, $qualidade );
652
					imagedestroy( $this->img );
653
					exit;
654
				}
655
				break;
656
			case 'png':
657
				if ( $destino ) 
658
				{
@@ 656-668 (lines=13) @@
653
					exit;
654
				}
655
				break;
656
			case 'png':
657
				if ( $destino ) 
658
				{
659
					imagepng( $this->img, $destino );
660
				} 
661
				else 
662
				{
663
					header( "Content-type: image/png" );
664
					imagepng( $this->img );
665
					imagedestroy( $this->img );
666
					exit;
667
				}
668
				break;
669
			case 'gif':
670
				if ( $destino ) 
671
				{
@@ 669-681 (lines=13) @@
666
					exit;
667
				}
668
				break;
669
			case 'gif':
670
				if ( $destino ) 
671
				{
672
					imagegif( $this->img, $destino );
673
				} 
674
				else 
675
				{
676
					header( "Content-type: image/gif" );
677
					imagegif( $this->img );
678
					imagedestroy( $this->img );
679
					exit;
680
				}
681
				break;
682
			default:
683
				return false;
684
				break;