Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Commit

Permalink
Use in_array in PHPExcel::cellXfExists()
Browse files Browse the repository at this point in the history
  • Loading branch information
amironov committed Nov 19, 2012
1 parent db2a7cb commit 7884495
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Classes/PHPExcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -615,12 +615,7 @@ public function getCellXfByHashCode($pValue = '')
*/
public function cellXfExists($pCellStyle = null)
{
foreach ($this->_cellXfCollection as $cellXf) {
if ($cellXf === $pCellStyle) {
return true;
}
}
return false;
return in_array($pCellStyle, $this->_cellXfCollection, true);
}

/**
Expand Down

0 comments on commit 7884495

Please sign in to comment.