Switch various LoadBalancer::getConnection() callers to getConnectionRef()
[lhc/web/wiklou.git] / includes / media / XCFHandler.php
index 0cb618f..e2cc1b2 100644 (file)
@@ -49,7 +49,7 @@ class XCFHandler extends BitmapHandler {
         * @param array|null $params
         * @return array
         */
-       function getThumbType( $ext, $mime, $params = null ) {
+       public function getThumbType( $ext, $mime, $params = null ) {
                return [ 'png', 'image/png' ];
        }
 
@@ -67,7 +67,7 @@ class XCFHandler extends BitmapHandler {
                }
 
                # Forge a return array containing metadata information just like getimagesize()
-               # See PHP documentation at: https://secure.php.net/getimagesize
+               # See PHP documentation at: https://www.php.net/getimagesize
                return [
                        0 => $header['width'],
                        1 => $header['height'],
@@ -186,7 +186,7 @@ class XCFHandler extends BitmapHandler {
         *
         * @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 ) {