1919readonly class IntegrationRuntime implements RuntimeExtensionInterface
2020{
2121 public function __construct (
22- private HtmlDecoder $ htmlDecoder ,
22+ private HtmlDecoder $ htmlDecoder ,
2323 private ContentUrlGenerator $ contentUrlGenerator ,
24- private VirtualFilesystemInterface $ filesStorage
25- ) {}
24+ private VirtualFilesystemInterface $ filesStorage ,
25+ ) {
26+ }
2627
2728 public function getNewsTags (NewsModel |int $ model , mixed $ figure = null ): array
2829 {
@@ -33,8 +34,8 @@ public function getNewsTags(NewsModel|int $model, mixed $figure = null): array
3334 }
3435 }
3536 $ headTags = [
36- new PropertyMetaTag ('og:title ' , $ this ->htmlDecoder ->inputEncodedToPlainText ((string )$ model ->headline )),
37- new PropertyMetaTag ('og:description ' , $ this ->htmlDecoder ->inputEncodedToPlainText ((string )$ model ->teaser )),
37+ new PropertyMetaTag ('og:title ' , $ this ->htmlDecoder ->inputEncodedToPlainText ((string ) $ model ->headline )),
38+ new PropertyMetaTag ('og:description ' , $ this ->htmlDecoder ->inputEncodedToPlainText ((string ) $ model ->teaser )),
3839 new PropertyMetaTag ('og:url ' , $ this ->contentUrlGenerator ->generate ($ model , referenceType: UrlGeneratorInterface::ABSOLUTE_URL )),
3940 ];
4041
@@ -43,11 +44,11 @@ public function getNewsTags(NewsModel|int $model, mixed $figure = null): array
4344 } elseif ($ model ->addImage && $ model ->singleSRC ) {
4445 try {
4546 $ uuid = Uuid::fromBinary ($ model ->singleSRC );
46- $ headTags [] = new PropertyMetaTag ('og:image ' , (string )$ this ->filesStorage ->generatePublicUri ($ uuid ));
47- } catch (\InvalidArgumentException | UnableToResolveUuidException ) {
47+ $ headTags [] = new PropertyMetaTag ('og:image ' , (string ) $ this ->filesStorage ->generatePublicUri ($ uuid ));
48+ } catch (\InvalidArgumentException | UnableToResolveUuidException ) {
4849 }
4950 }
5051
5152 return $ headTags ;
5253 }
53- }
54+ }
0 commit comments