Skip to content

Commit

Permalink
Fix PHPCS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brettsmason committed Sep 16, 2024
1 parent 6234823 commit a9ccf26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/classes/RemoteFiles/RemoteFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ public function image_attr( array $attr ): array {
/**
* Modify Image Srcset
*
* @param array $attr The image srcset
* @param array $size_array An array of width and height values.
*
* @return array
*/
public function image_srcset( $sources ) {
public function image_srcset( $size_array ): array {

foreach ( $sources as $source => $source_data ) {
$sources[$source]['url'] = $this->update_image_url( $source_data['url'] );
foreach ( $size_array as $source => $source_data ) {
$sources[ $source ]['url'] = $this->update_image_url( $source_data['url'] );
}

return $sources;
Expand Down

0 comments on commit a9ccf26

Please sign in to comment.