Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Jan 4, 2024
1 parent 81ad53c commit 465a596
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/Domain/Seo/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ public function __construct(Thing $thing)
{
parent::__construct(
'<script type="application/ld+json">' .
$this->jsonSchema($thing) .
\json_encode($thing->schema()) .
'</script>'
);
}

private function jsonSchema(Thing $thing): string
{
return \json_encode($thing->schema(), flags:\JSON_UNESCAPED_SLASHES);
}
}

0 comments on commit 465a596

Please sign in to comment.