Code Duplication    Length = 4-5 lines in 2 locations

lib/elFinderVolumeDriver.class.php 2 locations

@@ 5617-5620 (lines=4) @@
5614
				} elseif ($s[2] === IMAGETYPE_PNG) {
5615
				    $bgNum = imagecolorallocatealpha($img, 255, 255, 255, 127);
5616
				}
5617
				if ($bgNum === -1) {
5618
				    list($r, $g, $b) = sscanf($bgcolor, '#%02x%02x%02x');
5619
				    $bgNum = imagecolorallocate($img, $r, $g, $b);
5620
				}
5621
5622
				$tmp = imagerotate($img, $degree, $bgNum);
5623
				if ($bgIdx !== -1) {
@@ 5861-5865 (lines=5) @@
5858
	    if ($bgcolor === 'transparent') {
5859
	        imagealphablending($image, false);
5860
	        imagesavealpha($image, true);
5861
	    } else {
5862
	        list($r, $g, $b) = sscanf($bgcolor, '#%02x%02x%02x');
5863
	        $bgcolor1 = imagecolorallocate($image, $r, $g, $b);
5864
	        imagefill($image, 0, 0, $bgcolor1);
5865
	    }
5866
	}
5867
5868
	/**