1818
1919class ExtractPermalinkFragmentFromHeadingAction
2020{
21- public function __construct (private readonly GitHubActionsOutput $ gitHubActionsOutput )
22- {
23- }
21+ public function __construct (private readonly GitHubActionsOutput $ gitHubActionsOutput ) {}
2422
2523 public function execute (Heading $ releaseHeading ): string
2624 {
@@ -62,8 +60,8 @@ protected function prepareCommonmarkEnvironment(): Environment
6260 ];
6361
6462 $ environment = new Environment ($ config );
65- $ environment ->addExtension (new CommonMarkCoreExtension () );
66- $ environment ->addExtension (new HeadingPermalinkExtension () );
63+ $ environment ->addExtension (new CommonMarkCoreExtension );
64+ $ environment ->addExtension (new HeadingPermalinkExtension );
6765
6866 return $ environment ;
6967 }
@@ -74,12 +72,12 @@ protected function prepareCommonmarkEnvironment(): Environment
7472 */
7573 protected function attachPermalinkToHeading (Heading $ releaseHeading , Environment $ environment ): Document
7674 {
77- $ document = new Document () ;
75+ $ document = new Document ;
7876 $ document ->appendChild ($ releaseHeading );
7977
8078 $ documentParsedEvent = new DocumentParsedEvent ($ document );
8179
82- $ processor = (new HeadingPermalinkProcessor () );
80+ $ processor = (new HeadingPermalinkProcessor );
8381 $ processor ->setEnvironment ($ environment );
8482 $ processor ->__invoke ($ documentParsedEvent );
8583
@@ -92,7 +90,7 @@ protected function attachPermalinkToHeading(Heading $releaseHeading, Environment
9290 */
9391 protected function extractLinkFragmentFromRenderedHtml (string $ html ): ?string
9492 {
95- $ domDocument = new DOMDocument () ;
93+ $ domDocument = new DOMDocument ;
9694 $ domDocument ->loadHTML ($ html );
9795
9896 /** @var \DOMAttr $hrefAttribute */
0 commit comments