Merge "JavaScriptMinifier: Enable phpcs and fix violations"
[lhc/web/wiklou.git] / includes / media / WebP.php
index 541cac2..e0af6de 100644 (file)
@@ -118,6 +118,7 @@ class WebPHandler extends BitmapHandler {
        /**
         * Extracts the image size and WebP type from a file based on the chunk list
         * @param array $chunks Chunks as extracted by RiffExtractor
+        * @param string $filename
         * @return array Header data array with entries 'compression', 'width' and 'height', where
         * 'compression' can be 'lossy', 'lossless', 'animated' or 'unknown'
         */
@@ -153,7 +154,7 @@ class WebPHandler extends BitmapHandler {
 
        /**
         * Decodes a lossy chunk header
-        * @param string $header Header string
+        * @param string $header First few bytes of the header, expected to be at least 18 bytes long
         * @return bool|array See WebPHandler::decodeHeader
         */
        protected static function decodeLossyChunkHeader( $header ) {
@@ -179,7 +180,7 @@ class WebPHandler extends BitmapHandler {
 
        /**
         * Decodes a lossless chunk header
-        * @param string $header Header string
+        * @param string $header First few bytes of the header, expected to be at least 13 bytes long
         * @return bool|array See WebPHandler::decodeHeader
         */
        public static function decodeLosslessChunkHeader( $header ) {
@@ -204,7 +205,7 @@ class WebPHandler extends BitmapHandler {
 
        /**
         * Decodes an extended chunk header
-        * @param string $header Header string
+        * @param string $header First few bytes of the header, expected to be at least 18 bytes long
         * @return bool|array See WebPHandler::decodeHeader
         */
        public static function decodeExtendedChunkHeader( $header ) {
@@ -298,6 +299,8 @@ class WebPHandler extends BitmapHandler {
        /**
         * Must use "im" for XCF
         *
+        * @param string $dstPath
+        * @param bool $checkDstPath
         * @return string
         */
        protected function getScalerType( $dstPath, $checkDstPath = true ) {