Skip to content

Commit

Permalink
Update ImageHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRAoW authored Mar 13, 2024
1 parent d18f1e1 commit b35357f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Helpers/ImageHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public function generateResponsiveImage(int $attachment, array $args = []): stri
{
$args = apply_filters('offbeat/responsiveImage/args', $args, $attachment);

$containedMaxWidth = apply_filters('offbeat/responsiveImage/containedMaxWidth', $args['containedMaxWidth'] ?? null);
$sizes = apply_filters('offbeat/responsiveImage/sizes', $args['sizes'] ?? null);
$aspectRatio = apply_filters('offbeat/responsiveImage/aspectRatio', $args['aspectRatio'] ?? null);
$containedMaxWidth = apply_filters('offbeat/responsiveImage/containedMaxWidth', $args['containedMaxWidth'] ?? null, $args);
$sizes = apply_filters('offbeat/responsiveImage/sizes', $args['sizes'] ?? null, $args);
$aspectRatio = apply_filters('offbeat/responsiveImage/aspectRatio', $args['aspectRatio'] ?? null, $args);

if (!$sizes || !is_array($sizes)) {
$sizes = [0 => '100%'];
Expand Down

0 comments on commit b35357f

Please sign in to comment.