Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3913390
D2533.id6390.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D2533.id6390.diff
View Options
diff --git a/src/Output/XMLOutput.php b/src/Output/XMLOutput.php
--- a/src/Output/XMLOutput.php
+++ b/src/Output/XMLOutput.php
@@ -7,7 +7,7 @@
class XMLOutput extends Output {
public function render () : string {
- $report = $this->report;
+
$document = xmlwriter_open_memory();
xmlwriter_set_indent($document, true);
@@ -17,10 +17,10 @@
xmlwriter_start_element($document, 'report');
xmlwriter_start_attribute($document, 'title');
- xmlwriter_text($document, $report->title);
+ xmlwriter_text($document, $this->report->title);
xmlwriter_end_attribute($document);
- foreach ($report->sections as $section) {
+ foreach ($this->report->sections as $section) {
xmlwriter_start_element($document, 'section');
xmlwriter_start_attribute($document, 'title');
xmlwriter_text($document, $section->title);
@@ -47,7 +47,7 @@
xmlwriter_text($document, "Properties");
xmlwriter_end_attribute($document);
- foreach ($report->properties as $key => $value) {
+ foreach ($this->report->properties as $key => $value) {
xmlwriter_start_element($document, 'entry');
xmlwriter_start_element($document, 'key');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 09:50 (20 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2307748
Default Alt Text
D2533.id6390.diff (1 KB)
Attached To
Mode
D2533: Use directly object property for $this->report
Attached
Detach File
Event Timeline
Log In to Comment