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
	 Andrey Mironov
						Andrey Mironov