We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1be4361 commit 4b776e0Copy full SHA for 4b776e0
1 file changed
src/Report/Xml/Facade.php
@@ -277,15 +277,20 @@ private function targetDirectory(): string
277
return $this->target;
278
}
279
280
- /**
281
- * @throws XmlException
282
- */
283
- private function saveDocument(DOMDocument $document, string $name): void
+ private function targetFilePath(string $name): string
284
{
285
$filename = sprintf('%s/%s.xml', $this->targetDirectory(), $name);
286
287
$this->initTargetDirectory(dirname($filename));
288
289
- Filesystem::write($filename, Xml::asString($document));
+ return $filename;
+ }
+
+ /**
290
+ * @throws XmlException
291
+ */
292
+ private function saveDocument(DOMDocument $document, string $name): void
293
+ {
294
+ Filesystem::write($this->targetFilePath($name), Xml::asString($document));
295
296
0 commit comments