Skip to content

Commit

Permalink
Added line break in tags print
Browse files Browse the repository at this point in the history
  • Loading branch information
eusonlito authored May 13, 2022
1 parent 73edf12 commit 104c7f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eusonlito/LaravelMeta/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public function tag($key, $default = '')
$class = __NAMESPACE__.'\\Tags\\'.$tag;

foreach (array_unique($values) as $value) {
$html .= $class::tag($key, $value);
$html .= "\n".$class::tag($key, $value);
}
}

Expand All @@ -280,7 +280,7 @@ public function tags(array $keys = [])
$html = '';

foreach (($keys ?: array_keys($this->metas)) as $key) {
$html .= $this->tag($key);
$html .= "\n".$this->tag($key);
}

return $html;
Expand Down

0 comments on commit 104c7f6

Please sign in to comment.