mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-26 07:16:03 +03:00
Use in_array in PHPExcel::cellXfExists()
This commit is contained in:
parent
db2a7cbabf
commit
7884495d5d
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user