diff --git a/Classes/PHPExcel.php b/Classes/PHPExcel.php index f60a15c..ab3396b 100644 --- a/Classes/PHPExcel.php +++ b/Classes/PHPExcel.php @@ -615,12 +615,7 @@ class PHPExcel */ public function cellXfExists($pCellStyle = null) { - foreach ($this->_cellXfCollection as $cellXf) { - if ($cellXf === $pCellStyle) { - return true; - } - } - return false; + return in_array($pCellStyle, $this->_cellXfCollection, true); } /**