From 0a5be41c53a29db67410efa453e6c43704bc04cc Mon Sep 17 00:00:00 2001 From: Adrien Loison Date: Tue, 1 Sep 2015 10:59:33 -0700 Subject: [PATCH] Remove unused isInsideRowTag --- src/Spout/Reader/XLSX/RowIterator.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Spout/Reader/XLSX/RowIterator.php b/src/Spout/Reader/XLSX/RowIterator.php index 5b266e1..a6f1287 100644 --- a/src/Spout/Reader/XLSX/RowIterator.php +++ b/src/Spout/Reader/XLSX/RowIterator.php @@ -139,7 +139,6 @@ class RowIterator implements IteratorInterface */ public function next() { - $isInsideRowTag = false; $rowData = []; try { @@ -154,7 +153,6 @@ class RowIterator implements IteratorInterface } else if ($this->xmlReader->isPositionedOnStartingNode(self::XML_NODE_ROW)) { // Start of the row description - $isInsideRowTag = true; // Read spans info if present $numberOfColumnsForRow = $this->numColumns; @@ -165,7 +163,7 @@ class RowIterator implements IteratorInterface } $rowData = ($numberOfColumnsForRow !== 0) ? array_fill(0, $numberOfColumnsForRow, '') : []; - } else if ($isInsideRowTag && $this->xmlReader->isPositionedOnStartingNode(self::XML_NODE_CELL)) { + } else if ($this->xmlReader->isPositionedOnStartingNode(self::XML_NODE_CELL)) { // Start of a cell description $currentCellIndex = $this->xmlReader->getAttribute(self::XML_ATTRIBUTE_CELL_INDEX); $currentColumnIndex = CellHelper::getColumnIndexFromCellIndex($currentCellIndex);