| Conditions | 4 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 16 | public function getWorksheetPaths(Relationships $relationships): array |
||
| 17 | { |
||
| 18 | $xml = $this->getXMLReader(); |
||
| 19 | $paths = []; |
||
| 20 | |||
| 21 | while ($xml->read()) { |
||
| 22 | if (XMLReader::ELEMENT === $xml->nodeType && self::SHEET === $xml->name) { |
||
| 23 | $rId = $xml->getAttributeNs(name: self::ID, namespace: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'); |
||
| 24 | $paths[$xml->getAttribute(name: self::NAME)] = $relationships->getWorksheetPath(rId: $rId); |
||
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 28 | return $paths; |
||
| 29 | } |
||
| 31 |