X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fmedia%2FBMP.php;h=0229ac11b7df2c8a2fb80cff8ce14101099fec05;hb=f43fa6f4f0e2cb60b8543daad661b48a3e0653a9;hp=52f9518f79281cf1583cac0c713136459e83757b;hpb=61b2f07f6b4eb3ff676130126b40f519e125690c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/BMP.php b/includes/media/BMP.php index 52f9518f79..0229ac11b7 100644 --- a/includes/media/BMP.php +++ b/includes/media/BMP.php @@ -32,7 +32,7 @@ class BmpHandler extends BitmapHandler { * @param File $file * @return bool */ - function mustRender( $file ) { + public function mustRender( $file ) { return true; } @@ -45,13 +45,13 @@ class BmpHandler extends BitmapHandler { * @return array */ function getThumbType( $text, $mime, $params = null ) { - return array( 'png', 'image/png' ); + return [ 'png', 'image/png' ]; } /** * Get width and height from the bmp header. * - * @param File $image + * @param File|FSFile $image * @param string $filename * @return array */ @@ -75,6 +75,6 @@ class BmpHandler extends BitmapHandler { return false; } - return array( $w[1], $h[1] ); + return [ $w[1], $h[1] ]; } }