1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 09:54:03 +00:00

Run php-cs-fixer

This commit is contained in:
Ben Bjurstrom 2024-09-04 10:09:06 -07:00
parent cbb33fa269
commit 7937fec988

View file

@ -226,9 +226,9 @@ class SEOManager
/** Append canonical URL tags to the document head. */ /** Append canonical URL tags to the document head. */
public function withUrl(?string $origin = null): static public function withUrl(?string $origin = null): static
{ {
if($origin){ if ($origin) {
$this->url(trim($origin, '/') . '/' . trim(request()->path(), '/')); $this->url(trim($origin, '/') . '/' . trim(request()->path(), '/'));
}else{ } else {
$this->url(request()->url()); $this->url(request()->url());
} }