mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-22 13:26:07 +03:00
Minor performance tweak to OfficeOpenXML and BIFF Readers
This commit is contained in:
parent
891478f6ab
commit
77cc77209b
@ -951,8 +951,7 @@ class PHPExcel_Reader_Excel2007 extends PHPExcel_Reader_Abstract implements PHPE
|
||||
}
|
||||
|
||||
// Extract all cell references in $ref
|
||||
$aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($ref);
|
||||
foreach ($aReferences as $reference) {
|
||||
foreach (PHPExcel_Cell::extractAllCellReferencesInRange($ref) as $reference) {
|
||||
$docSheet->getStyle($reference)->setConditionalStyles($conditionalStyles);
|
||||
}
|
||||
}
|
||||
@ -1178,8 +1177,7 @@ class PHPExcel_Reader_Excel2007 extends PHPExcel_Reader_Abstract implements PHPE
|
||||
$stRange = $docSheet->shrinkRangeToFit($range);
|
||||
|
||||
// Extract all cell references in $range
|
||||
$aReferences = PHPExcel_Cell::extractAllCellReferencesInRange($stRange);
|
||||
foreach ($aReferences as $reference) {
|
||||
foreach (PHPExcel_Cell::extractAllCellReferencesInRange($stRange) as $reference) {
|
||||
// Create validation
|
||||
$docValidation = $docSheet->getCell($reference)->getDataValidation();
|
||||
$docValidation->setType((string) $dataValidation["type"]);
|
||||
|
@ -4883,8 +4883,7 @@ class PHPExcel_Reader_Excel5 extends PHPExcel_Reader_Abstract implements PHPExce
|
||||
|
||||
foreach ($cellRangeAddresses as $cellRange) {
|
||||
$stRange = $this->phpSheet->shrinkRangeToFit($cellRange);
|
||||
$stRange = PHPExcel_Cell::extractAllCellReferencesInRange($stRange);
|
||||
foreach ($stRange as $coordinate) {
|
||||
foreach (PHPExcel_Cell::extractAllCellReferencesInRange($stRange) as $coordinate) {
|
||||
$objValidation = $this->phpSheet->getCell($coordinate)->getDataValidation();
|
||||
$objValidation->setType($type);
|
||||
$objValidation->setErrorStyle($errorStyle);
|
||||
|
Loading…
Reference in New Issue
Block a user