Skip to content

Commit

Permalink
Fixed OG image height attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
woren951 authored Jul 31, 2023
1 parent a561acf commit f323601
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Managers/MetaTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ public function robots(string $value): self
/**
* @param string $value
* @param int|null $width
* @param int|null $heigth
* @param int|null $height
* @param string|null $type
* @param array|null $providers
* @return $this
*/
public function image(
string $value,
int $width = null,
int $heigth = null,
int $height = null,
string $type = null,
array $providers = []
): self {
Expand All @@ -146,8 +146,8 @@ public function image(
$this->og('image:width', $width);
}

if ($heigth) {
$this->og('image:heigth', $heigth);
if ($height) {
$this->og('image:height', $height);
}

if ($type) {
Expand Down

0 comments on commit f323601

Please sign in to comment.