summaryrefslogtreecommitdiff
path: root/includes/media/BMP.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/media/BMP.php')
-rw-r--r--includes/media/BMP.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/media/BMP.php b/includes/media/BMP.php
index a515c635..99b7741a 100644
--- a/includes/media/BMP.php
+++ b/includes/media/BMP.php
@@ -58,15 +58,15 @@ class BmpHandler extends BitmapHandler {
*/
function getImageSize( $image, $filename ) {
$f = fopen( $filename, 'rb' );
- if( !$f ) {
+ if ( !$f ) {
return false;
}
$header = fread( $f, 54 );
- fclose($f);
+ fclose( $f );
// Extract binary form of width and height from the header
- $w = substr( $header, 18, 4);
- $h = substr( $header, 22, 4);
+ $w = substr( $header, 18, 4 );
+ $h = substr( $header, 22, 4 );
// Convert the unsigned long 32 bits (little endian):
try {