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