X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FXCF.php;h=e77d3842296e53c49d251b4b14c7903c91d32dda;hb=1bc950c1e19cebdfd404a87186fb209dbe722b2c;hp=ba0d41983fc77264d2c74699aaefee0d4bdbff62;hpb=de433e5b6e7be471cebd2d7387e40f338eade583;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/XCF.php b/includes/media/XCF.php index ba0d41983f..e77d384229 100644 --- a/includes/media/XCF.php +++ b/includes/media/XCF.php @@ -72,13 +72,13 @@ class XCFHandler extends BitmapHandler { * @author Hexmode * @author Hashar * - * @param $filename String Full path to a XCF file + * @param string $filename Full path to a XCF file * @return bool|array metadata array just like PHP getimagesize() */ static function getXCFMetaData( $filename ) { # Decode master structure $f = fopen( $filename, 'rb' ); - if( !$f ) { + if ( !$f ) { return false; } # The image structure always starts at offset 0 in the XCF file. @@ -110,12 +110,12 @@ class XCFHandler extends BitmapHandler { . "/Nbase_type" # / , $binaryHeader ); - } catch( MWException $mwe ) { + } catch ( MWException $mwe ) { return false; } # Check values - if( $header['magic'] !== 'gimp xcf' ) { + if ( $header['magic'] !== 'gimp xcf' ) { wfDebug( __METHOD__ . " '$filename' has invalid magic signature.\n" ); return false; }