Merge "Move up devunt's name to Developers"
[lhc/web/wiklou.git] / includes / media / BMP.php
index 52f9518..0229ac1 100644 (file)
@@ -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] ];
        }
 }