From bde593557de80d3cf6f6e322d2026fde6f4b28f9 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Sat, 3 Dec 2011 10:02:24 +0000 Subject: [PATCH] Minor performance optimisation: use $x+=3 instead of $x=$x+3 git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@83576 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Classes/PHPExcel/Shared/Date.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/PHPExcel/Shared/Date.php b/Classes/PHPExcel/Shared/Date.php index d0b9683..111b479 100644 --- a/Classes/PHPExcel/Shared/Date.php +++ b/Classes/PHPExcel/Shared/Date.php @@ -181,9 +181,9 @@ class PHPExcel_Shared_Date // Julian base date Adjustment if ($month > 2) { - $month = $month - 3; + $month -= 3; } else { - $month = $month + 9; + $month += 9; --$year; }