| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 4 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 12 | public function render() |
||
| 13 | 92 | { |
|
| 14 | for ($i = 0; $i < $this->getDrawingHashTable()->count(); ++$i) { |
||
| 15 | 92 | $shape = $this->getDrawingHashTable()->getByIndex($i); |
|
| 16 | 31 | if (!$shape instanceof Drawing\AbstractDrawingAdapter) { |
|
| 17 | 31 | continue; |
|
| 18 | 6 | } |
|
| 19 | 6 | $this->getZip()->addFromString('ppt/media/' . $shape->getIndexedFilename(), $shape->getContents()); |
|
| 20 | 1 | } |
|
| 21 | 1 | ||
| 22 | return $this->getZip(); |
||
| 23 | 1 | } |
|
| 24 | } |
||
| 25 |