Skip to content

Commit

Permalink
Reorder default meta tags attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
imsus authored May 7, 2023
1 parent d8da69b commit 946ada1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/MetaTags/Concerns/InitializeDefaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ trait InitializeDefaults
*/
public function initialize()
{
if (!empty($charset = $this->config('charset'))) {
$this->setCharset($charset);
}

if (!empty($viewport = $this->config('viewport'))) {
$this->setViewport($viewport);
}

if (!empty($title = $this->config('title.default'))) {
$this->setTitle($title);
}
Expand All @@ -21,14 +29,6 @@ public function initialize()
$this->setKeywords($keywords);
}

if (!empty($charset = $this->config('charset'))) {
$this->setCharset($charset);
}

if (!empty($viewport = $this->config('viewport'))) {
$this->setViewport($viewport);
}

if (!empty($robots = $this->config('robots'))) {
$this->setRobots($robots);
}
Expand All @@ -43,4 +43,4 @@ public function initialize()

return $this;
}
}
}

0 comments on commit 946ada1

Please sign in to comment.