useless parentheses

This commit is contained in:
Diego Souza 2019-09-22 22:03:12 -03:00 committed by Adrien Crivelli
parent fac1d6de14
commit 157b6e75e4
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 2 additions and 2 deletions

View File

@ -2561,11 +2561,11 @@ class Worksheet implements IComparable
// Loop through rows
$r = -1;
for ($row = $minRow; $row <= $maxRow; ++$row) {
$rRef = ($returnCellRef) ? $row : ++$r;
$rRef = $returnCellRef ? $row : ++$r;
$c = -1;
// Loop through columns in the current row
for ($col = $minCol; $col != $maxCol; ++$col) {
$cRef = ($returnCellRef) ? $col : ++$c;
$cRef = $returnCellRef ? $col : ++$c;
// Using getCell() will create a new cell if it doesn't already exist. We don't want that to happen
// so we test and retrieve directly against cellCollection
if ($this->cellCollection->has($col . $row)) {