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:
parent
cbb33fa269
commit
7937fec988
1 changed files with 2 additions and 2 deletions
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue