X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fmedia%2FMediaHandler.php;h=aa7c62be9d55e0a52b6ebc420eef63ae49675dce;hb=ca01c9ff7f62556f76bba61cad4cfbcbc9519828;hp=88962642e504490aa50a333d15b5081b4a434747;hpb=3cecf7e6f1b6b30e86c3b08372ecf200bd5a9018;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/MediaHandler.php b/includes/media/MediaHandler.php index 88962642e5..aa7c62be9d 100644 --- a/includes/media/MediaHandler.php +++ b/includes/media/MediaHandler.php @@ -85,7 +85,7 @@ abstract class MediaHandler { * Should be idempotent. * Returns false if the parameters are unacceptable and the transform should fail * @param File $image - * @param array $params + * @param array &$params */ abstract function normaliseParams( $image, &$params ); @@ -157,7 +157,6 @@ abstract class MediaHandler { */ function convertMetadataVersion( $metadata, $version = 1 ) { if ( !is_array( $metadata ) ) { - // unserialize to keep return parameter consistent. MediaWiki\suppressWarnings(); $ret = unserialize( $metadata ); @@ -305,8 +304,10 @@ abstract class MediaHandler { } /** - * @deprecated since 1.30, use MediaHandler::getContentHeaders instead - */ + * @deprecated since 1.30, use MediaHandler::getContentHeaders instead + * @param array $metadata + * @return array + */ public function getStreamHeaders( $metadata ) { wfDeprecated( __METHOD__, '1.30' ); return $this->getContentHeaders( $metadata ); @@ -713,7 +714,7 @@ abstract class MediaHandler { * * @see LocalFile::purgeThumbnails * - * @param array $files + * @param array &$files * @param array $options Purge options. Currently will always be * an array with a single key 'forThumbRefresh' set to true. */ @@ -873,7 +874,7 @@ abstract class MediaHandler { * @param Array $pagesByDimensions * @return String * @since 1.30 - */ + */ public static function getPageRangesByDimensions( $pagesByDimensions ) { $pageRangesByDimensions = []; @@ -914,11 +915,11 @@ abstract class MediaHandler { } /** - * Get useful response headers for GET/HEAD requests for a file with the given metadata - * @param $metadata Array Contains this handler's unserialized getMetadata() for a file - * @return Array - * @since 1.30 - */ + * Get useful response headers for GET/HEAD requests for a file with the given metadata + * @param array $metadata Contains this handler's unserialized getMetadata() for a file + * @return array + * @since 1.30 + */ public function getContentHeaders( $metadata ) { return []; }