55use KirbyReporter \Model \FormData ;
66use KirbyReporter \Report \ReportInterface ;
77use KirbyReporter \Report \ReportResponse ;
8- use KirbyReporter \Report \ReportTemplateParser ;
98use KirbyReporter \Traits \Expander ;
109use KirbyReporter \Traits \Request ;
1110use KirbyReporter \Vendor \Vendor ;
@@ -14,7 +13,6 @@ class BitbucketReport implements ReportInterface
1413{
1514 use Request;
1615 use Expander;
17- use ReportTemplateParser;
1816
1917 private string $ urlTemplate = "https://api.bitbucket.org/2.0/repositories/{user}/{repo}/issues " ;
2018
@@ -25,7 +23,7 @@ public function __construct(Vendor $vendor)
2523 $ this ->vendor = $ vendor ;
2624 }
2725
28- public final function report (FormData $ reportData ): ReportResponse
26+ public final function report (FormData $ reportData, string $ parsedTemplate ): ReportResponse
2927 {
3028 $ url = $ this ->expandUrl ($ this ->urlTemplate , [
3129 "user " => $ this ->vendor ->getOwner (),
@@ -34,7 +32,7 @@ public final function report(FormData $reportData): ReportResponse
3432
3533 $ reportData = [
3634 "title " => $ reportData ->getTitle (),
37- "description " => $ this -> parseTemplate ( $ reportData -> getFormFields ()) ,
35+ "description " => $ parsedTemplate ,
3836 ];
3937
4038 $ header = ["Authorization " => "Basic " .$ this ->getBasicAuth ()];
0 commit comments