X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fmedia%2FXCF.php;h=1b6c4c87ed25f512a799ad4add1c80fedaccd4d5;hp=c41952408f22101a00bcfe323cd78d7fb9ea2352;hb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;hpb=64b83bdb3afd0ee4f8fc1893a865409c198e601e diff --git a/includes/media/XCF.php b/includes/media/XCF.php index c41952408f..1b6c4c87ed 100644 --- a/includes/media/XCF.php +++ b/includes/media/XCF.php @@ -151,7 +151,7 @@ class XCFHandler extends BitmapHandler { * * @param File|FSFile $file The image object, or false if there isn't one. * Warning, FSFile::getPropsFromPath might pass an (object)array() instead (!) - * @param string $filename The filename + * @param string $filename * @return string */ public function getMetadata( $file, $filename ) { @@ -162,18 +162,17 @@ class XCFHandler extends BitmapHandler { // Unclear from base media type if it has an alpha layer, // so just assume that it does since it "potentially" could. switch ( $header['base_type'] ) { - case 0: - $metadata['colorType'] = 'truecolour-alpha'; - break; - case 1: - $metadata['colorType'] = 'greyscale-alpha'; - break; - case 2: - $metadata['colorType'] = 'index-coloured'; - break; - default: - $metadata['colorType'] = 'unknown'; - + case 0: + $metadata['colorType'] = 'truecolour-alpha'; + break; + case 1: + $metadata['colorType'] = 'greyscale-alpha'; + break; + case 2: + $metadata['colorType'] = 'index-coloured'; + break; + default: + $metadata['colorType'] = 'unknown'; } } else { // Marker to prevent repeated attempted extraction