Skip to content

Commit

Permalink
fix getters
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Oct 4, 2024
1 parent 89ff46e commit 31c7f15
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Models/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ public function getWidth(

if ($conversion) {
$width = $this->getGeneratedConversion($conversion)?->width;
} elseif ($this->path) {
} else {
$width = $this->width;
}

Expand Down Expand Up @@ -841,7 +841,7 @@ public function getHeight(

if ($conversion) {
$height = $this->getGeneratedConversion($conversion)?->height;
} elseif ($this->path) {
} else {
$height = $this->height;
}

Expand Down Expand Up @@ -873,7 +873,7 @@ public function getName(

if ($conversion) {
$name = $this->getGeneratedConversion($conversion)?->name;
} elseif ($this->path) {
} else {
$name = $this->name;
}

Expand Down Expand Up @@ -903,7 +903,7 @@ public function getFileName(

if ($conversion) {
$fileName = $this->getGeneratedConversion($conversion)?->file_name;
} elseif ($this->path) {
} else {
$fileName = $this->file_name;
}

Expand Down Expand Up @@ -933,7 +933,7 @@ public function getSize(

if ($conversion) {
$size = $this->getGeneratedConversion($conversion)?->size;
} elseif ($this->path) {
} else {
$size = $this->size;
}

Expand Down Expand Up @@ -965,7 +965,7 @@ public function getAspectRatio(

if ($conversion) {
$aspectRatio = $this->getGeneratedConversion($conversion)?->aspect_ratio;
} elseif ($this->path) {
} else {
$aspectRatio = $this->aspect_ratio;
}

Expand Down Expand Up @@ -997,7 +997,7 @@ public function getMimeType(

if ($conversion) {
$mimeType = $this->getGeneratedConversion($conversion)?->mime_type;
} elseif ($this->path) {
} else {
$mimeType = $this->mime_type;
}

Expand Down

0 comments on commit 31c7f15

Please sign in to comment.