protected function readNext()
{
$xml = $this->getXMLReader();
while ($xml->read()) {
if (\XMLReader::END_ELEMENT === $xml->nodeType && 'cellXfs' === $xml->name) {
break;
} elseif (\XMLReader::ELEMENT === $xml->nodeType && 'cellXfs' === $xml->name) {
$this->inXfs = true;
} elseif ($this->inXfs && \XMLReader::ELEMENT === $xml->nodeType && 'xf' === $xml->name) {
$fmtId = $xml->getAttribute('numFmtId');
if (isset($this->numberFormats[$fmtId])) {
$value = $this->numberFormats[$fmtId];
} elseif (in_array($fmtId, $this->nativeDateFormats)) {
$value = static::FORMAT_DATE;
} else {
$value = static::FORMAT_DEFAULT;
}
$this->values[] = $value;
return;
}
}
$this->valid = false;
$this->closeXMLReader();
}