Code Duplication    Length = 5-5 lines in 2 locations

lib/private/legacy/image.php 2 locations

@@ 579-583 (lines=5) @@
576
				}
577
				break;
578
			case IMAGETYPE_XBM:
579
				if (imagetypes() & IMG_XPM) {
580
					$this->resource = @imagecreatefromxbm($imagePath);
581
				} else {
582
					$this->logger->debug('OC_Image->loadFromFile, XBM/XPM images not supported: ' . $imagePath, array('app' => 'core'));
583
				}
584
				break;
585
			case IMAGETYPE_WBMP:
586
				if (imagetypes() & IMG_WBMP) {
@@ 586-590 (lines=5) @@
583
				}
584
				break;
585
			case IMAGETYPE_WBMP:
586
				if (imagetypes() & IMG_WBMP) {
587
					$this->resource = @imagecreatefromwbmp($imagePath);
588
				} else {
589
					$this->logger->debug('OC_Image->loadFromFile, WBMP images not supported: ' . $imagePath, array('app' => 'core'));
590
				}
591
				break;
592
			case IMAGETYPE_BMP:
593
				$this->resource = $this->imagecreatefrombmp($imagePath);