if ( $info['fourCC'] != 'WEBP' ) {
wfDebugLog( 'WebP', __METHOD__ . ': FourCC was not WEBP: ' .
- bin2hex( $info['fourCC'] ) . " \n" );
+ bin2hex( $info['fourCC'] ) . " \n" );
return false;
}
// Bytes 4-7 are chunk stream size
// Byte 8 is 0x2F called the signature
if ( $header{8} != "\x2F" ) {
- wfDebugLog( 'WebP', __METHOD__ . ': Invalid signature: ' .
+ wfDebugLog( 'WebP', __METHOD__ . ': Invalid signature: ' .
bin2hex( $header{8} ) . "\n" );
return array();
}
return array(
'compression' => 'unknown',
- 'animated' => ($flags[1] & self::VP8X_ANIM) == self::VP8X_ANIM,
- 'transparency' => ($flags[1] & self::VP8X_ALPHA) == self::VP8X_ALPHA,
+ 'animated' => ( $flags[1] & self::VP8X_ANIM ) == self::VP8X_ANIM,
+ 'transparency' => ( $flags[1] & self::VP8X_ALPHA ) == self::VP8X_ALPHA,
'width' => ( $width[1] & 0xFFFFFF ) + 1,
'height' => ( $height[1] & 0xFFFFFF ) + 1
);
$ser = $image->getMetadata();
if ( $ser ) {
$metadata = unserialize( $ser );
- if ( isset($metadata['animated']) && $metadata['animated'] === true ) {
+ if ( isset( $metadata['animated'] ) && $metadata['animated'] === true ) {
return true;
}
}