* @param File $file
* @return bool
*/
- function mustRender( $file ) {
+ public function mustRender( $file ) {
return true;
}
* @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
*/
try {
$w = wfUnpack( 'V', $w, 4 );
$h = wfUnpack( 'V', $h, 4 );
- } catch ( MWException $e ) {
+ } catch ( Exception $e ) {
return false;
}
- return array( $w[1], $h[1] );
+ return [ $w[1], $h[1] ];
}
}