Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
luqven committed Mar 8, 2021
1 parent fe0ee3e commit 2877830
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Imgix/UrlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,8 @@ private function isDpr($params) {
$hasHeight = array_key_exists('h', $params) ? $params['h'] : NULL;
$hasAspectRatio = array_key_exists('ar', $params) ? $params['ar'] : NULL;

// If `params` have a width param or _both_ height and aspect
// ratio parameters then the srcset to be constructed with
// these params _is dpr based
// If `params` have a width or height parameter then the
// srcset to be constructed with these params _is dpr based
return $hasWidth || $hasHeight;
}

Expand Down

0 comments on commit 2877830

Please sign in to comment.