X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fmedia%2FGIF.php;h=5f23855c81128a2e0b0b2978be221a4c4632aa5b;hb=5a87ec27fcf45ad451c1b07f9bcfaa754972c097;hp=b998d185f9982125287ed6101c8768d86596615c;hpb=20f90051034c1e5e3c75c1add0b0fd7ae1e802b5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/GIF.php b/includes/media/GIF.php index b998d185f9..5f23855c81 100644 --- a/includes/media/GIF.php +++ b/includes/media/GIF.php @@ -65,11 +65,11 @@ class GIFHandler extends BitmapHandler { $meta = $image->getMetadata(); if ( !$meta ) { - return array(); + return []; } $meta = unserialize( $meta ); if ( !isset( $meta['metadata'] ) ) { - return array(); + return []; } unset( $meta['metadata']['_MW_GIF_VERSION'] ); @@ -170,7 +170,7 @@ class GIFHandler extends BitmapHandler { } /* Preserve original image info string, but strip the last char ')' so we can add even more */ - $info = array(); + $info = []; $info[] = $original; if ( $metadata['looped'] ) { @@ -193,7 +193,7 @@ class GIFHandler extends BitmapHandler { * * Shown in the &query=imageinfo&iiprop=size api query. * - * @param $file File + * @param File $file * @return float The duration of the file. */ public function getLength( $file ) {