We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64745c0 commit a4b452eCopy full SHA for a4b452e
Atomx/Resources/Report.php
@@ -73,7 +73,7 @@ public function download($report)
73
return new ReportStreamer($stream);
74
}
75
76
- public function runAndDownload($json, $timeout = 120)
+ public function runAndDownload($json, $timeout = 120, $returnReportId = false)
77
{
78
$reportData = $this->run($json);
79
@@ -87,7 +87,10 @@ public function runAndDownload($json, $timeout = 120)
87
88
89
90
- return $this->download($reportData);
+ if ($returnReportId)
91
+ return [$this->download($reportData), Report::getReportId($reportData)];
92
+ else
93
+ return $this->download($reportData);
94
95
96
protected function handleResponse(Response $response)
0 commit comments