* 'physicalWidth' and 'physicalHeight' indicate the thumbnail dimensions.
* @return bool
*/
- function normaliseParams( $image, &$params ) {
+ public function normaliseParams( $image, &$params ) {
if ( !parent::normaliseParams( $image, $params ) ) {
return false;
}
'mimeType' => $image->getMimeType(),
'dstPath' => $dstPath,
'dstUrl' => $dstUrl,
- 'interlace' => isset( $params['interlace'] ) ? $params['interlace'] : false,
+ 'interlace' => $params['interlace'] ?? false,
];
if ( isset( $params['quality'] ) && $params['quality'] === 'low' ) {