We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a2f292 commit a9e3d55Copy full SHA for a9e3d55
src/Adapters/Adapter.php
@@ -404,7 +404,7 @@ public function getHeight()
404
*/
405
public function getAspectRatio()
406
{
407
- if (!empty($this->width) && (strpos($this->width, '%') === false) && !empty($this->height) && (strpos($this->height, '%') === false)) {
+ if ($this->width && (strpos($this->width, '%') === false) && $this->height && (strpos($this->height, '%') === false)) {
408
return round(($this->height / $this->width) * 100, 3);
409
}
410
0 commit comments