mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-10-01 09:27:49 +00:00
Performance tweaks (particularly affecting the Excel5 Writer)
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@63320 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
@@ -393,7 +393,7 @@ class PHPExcel_Style_NumberFormat implements PHPExcel_IComparable
|
||||
self::fillBuiltInFormatCodes();
|
||||
|
||||
// Lookup format code
|
||||
if (array_key_exists($pIndex, self::$_builtInFormats)) {
|
||||
if (isset(self::$_builtInFormats[$pIndex])) {
|
||||
return self::$_builtInFormats[$pIndex];
|
||||
}
|
||||
|
||||
@@ -412,7 +412,7 @@ class PHPExcel_Style_NumberFormat implements PHPExcel_IComparable
|
||||
self::fillBuiltInFormatCodes();
|
||||
|
||||
// Lookup format code
|
||||
if (array_key_exists($formatCode, self::$_flippedBuiltInFormats)) {
|
||||
if (isset(self::$_flippedBuiltInFormats[$formatCode])) {
|
||||
return self::$_flippedBuiltInFormats[$formatCode];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user