X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FGIF.php;h=608fb257f2d0e1e8ad5ec867b6ab0ec8ca0e3103;hb=a98cef2118b38384278d2d0d0ae8f0f11799be61;hp=2e532feb9a939b370f44040a079a7df3a1e60a2d;hpb=e8c5b7f35722bb52dbe0e6c7853d3e73df27819e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/GIF.php b/includes/media/GIF.php index 2e532feb9a..608fb257f2 100644 --- a/includes/media/GIF.php +++ b/includes/media/GIF.php @@ -33,7 +33,7 @@ class GIFHandler extends BitmapHandler { function getMetadata( $image, $filename ) { try { $parsedGIFMetadata = BitmapMetadataHandler::GIF( $filename ); - } catch( Exception $e ) { + } catch ( Exception $e ) { // Broken file? wfDebug( __METHOD__ . ': ' . $e->getMessage() . "\n" ); return self::BROKEN_FILE; @@ -86,7 +86,7 @@ class GIFHandler extends BitmapHandler { $ser = $image->getMetadata(); if ( $ser ) { $metadata = unserialize( $ser ); - if( $metadata['frameCount'] > 1 ) { + if ( $metadata['frameCount'] > 1 ) { return true; } } @@ -119,13 +119,13 @@ class GIFHandler extends BitmapHandler { wfRestoreWarnings(); if ( !$data || !is_array( $data ) ) { - wfDebug( __METHOD__ . ' invalid GIF metadata' ); + wfDebug( __METHOD__ . " invalid GIF metadata\n" ); return self::METADATA_BAD; } if ( !isset( $data['metadata']['_MW_GIF_VERSION'] ) || $data['metadata']['_MW_GIF_VERSION'] != GIFMetadataExtractor::VERSION ) { - wfDebug( __METHOD__ . ' old but compatible GIF metadata' ); + wfDebug( __METHOD__ . " old but compatible GIF metadata\n" ); return self::METADATA_COMPATIBLE; } return self::METADATA_GOOD;