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