Use in_array in PHPExcel::cellXfExists()

This commit is contained in:
Andrey Mironov 2012-10-30 16:46:23 +06:00
parent db2a7cbabf
commit 7884495d5d

View File

@ -615,12 +615,7 @@ class PHPExcel
*/ */
public function cellXfExists($pCellStyle = null) public function cellXfExists($pCellStyle = null)
{ {
foreach ($this->_cellXfCollection as $cellXf) { return in_array($pCellStyle, $this->_cellXfCollection, true);
if ($cellXf === $pCellStyle) {
return true;
}
}
return false;
} }
/** /**