| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function render() |
||
| 13 | { |
||
| 14 | // Create XML writer |
||
| 15 | $objWriter = new XMLWriter(XMLWriter::STORAGE_MEMORY); |
||
| 16 | |||
| 17 | // XML header |
||
| 18 | $objWriter->startDocument('1.0', 'UTF-8', 'yes'); |
||
| 19 | |||
| 20 | // a:tblStyleLst |
||
| 21 | $objWriter->startElement('a:tblStyleLst'); |
||
| 22 | $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main'); |
||
| 23 | $objWriter->writeAttribute('def', '{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}'); |
||
| 24 | $objWriter->endElement(); |
||
| 25 | |||
| 26 | $this->getZip()->addFromString('ppt/tableStyles.xml', $objWriter->getData()); |
||
| 27 | |||
| 28 | return $this->getZip(); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |