Conditions | 4 |
Paths | 3 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function getWorksheetPaths(Relationships $relationships, $path) |
||
26 | { |
||
27 | $xml = new \XMLReader(); |
||
28 | $xml->open($path); |
||
29 | $paths = []; |
||
30 | while ($xml->read()) { |
||
31 | if (\XMLReader::ELEMENT === $xml->nodeType && 'sheet' === $xml->name) { |
||
32 | $rId = $xml->getAttributeNs( |
||
33 | 'id', |
||
34 | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships' |
||
35 | ); |
||
36 | $paths[$xml->getAttribute('name')] = $relationships->getWorksheetPath($rId); |
||
37 | } |
||
38 | } |
||
39 | |||
40 | return $paths; |
||
41 | } |
||
42 | } |
||
43 |