From d5ce069cfce575c9cbd86172b3327b32514d9809 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Thu, 26 Jan 2012 00:53:20 +0000 Subject: [PATCH] minor performance tweak git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@85749 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Classes/PHPExcel/Calculation/Function.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/PHPExcel/Calculation/Function.php b/Classes/PHPExcel/Calculation/Function.php index 1e7ac935..88a7b547 100644 --- a/Classes/PHPExcel/Calculation/Function.php +++ b/Classes/PHPExcel/Calculation/Function.php @@ -76,9 +76,9 @@ class PHPExcel_Calculation_Function { * @param string $pPHPExcelName PHPExcel function mapping * @throws Exception */ - public function __construct($pCategory = null, $pExcelName = null, $pPHPExcelName = null) + public function __construct($pCategory = NULL, $pExcelName = NULL, $pPHPExcelName = NULL) { - if (!is_null($pCategory) && !is_null($pExcelName) && !is_null($pPHPExcelName)) { + if (($pCategory !== NULL) && ($pExcelName !== NULL) && ($pPHPExcelName !== NULL)) { // Initialise values $this->_category = $pCategory; $this->_excelName = $pExcelName;