Skip to content
Prev Previous commit
fix linting errors
  • Loading branch information
jjgrainger committed Mar 30, 2022
commit 0374fb5d4be0d1e37c18fae4eef580e5a3a17dca
4 changes: 2 additions & 2 deletions modules/images/webp-uploads/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,8 @@ function webp_uploads_get_attachment_sources( $attachment_id, $size = 'thumbnail
*
* @since n.e.x.t
*
* @param array $mime_types The list of mime types that can be used to update images in the content.
* @param int $attachment_id The attachment ID.
* @param array $mime_types The list of mime types that can be used to update images in the content.
* @param int $attachment_id The attachment ID.
* @return array Array of available mime types ordered by filesize.
*/
function webp_uploads_get_mime_types_by_filesize( $mime_types, $attachment_id ) {
Expand Down
4 changes: 2 additions & 2 deletions tests/modules/images/webp-uploads/webp-uploads-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -902,11 +902,11 @@ public function it_should_remove_mime_types_with_zero_filesize() {
'wp_get_attachment_metadata',
function( $data, $attachment_id ) {
$data['sources'] = array(
'image/jpeg' => array(
'image/jpeg' => array(
'file' => 'paint.jpeg',
'filesize' => 1000,
),
'image/webp' => array(
'image/webp' => array(
'file' => 'paint.webp',
'filesize' => 2000,
),
Expand Down