* performance problems.
* @param File $image
* @param string $metadata The metadata in serialized form
- * @return bool
+ * @return bool|int
*/
public function isMetadataValid( $image, $metadata ) {
return self::METADATA_GOOD;
*
* @param File $file The file object for the file in question
* @param string $metadata Serialized metadata
- * @return bool One of the self::METADATA_(BAD|GOOD|COMPATIBLE) constants
+ * @return bool|int One of the self::METADATA_(BAD|GOOD|COMPATIBLE) constants
*/
public function isMetadataValid( $file, $metadata ) {
if ( !$metadata ) {