From 917592001e04bdb63a8d58166bad165ac2533e56 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sun, 17 Feb 2019 17:40:57 +0100 Subject: [PATCH] CS Style fixes --- src/PhpSpreadsheet/Shared/OLE.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PhpSpreadsheet/Shared/OLE.php b/src/PhpSpreadsheet/Shared/OLE.php index b462ed74..52715571 100644 --- a/src/PhpSpreadsheet/Shared/OLE.php +++ b/src/PhpSpreadsheet/Shared/OLE.php @@ -550,8 +550,8 @@ class OLE // convert to units of 100 ns since 1601: $unpackedTimestamp = unpack('v4', $oleTimestamp); - $timestampHigh = (float)$unpackedTimestamp[4] * 65536 + (float)$unpackedTimestamp[3]; - $timestampLow = (float)$unpackedTimestamp[2] * 65536 + (float)$unpackedTimestamp[1]; + $timestampHigh = (float) $unpackedTimestamp[4] * 65536 + (float) $unpackedTimestamp[3]; + $timestampLow = (float) $unpackedTimestamp[2] * 65536 + (float) $unpackedTimestamp[1]; // translate to seconds since 1601: $timestampHigh /= 10000000; @@ -563,7 +563,7 @@ class OLE // translate to seconds since 1970: $unixTimestamp = floor(65536.0 * 65536.0 * $timestampHigh + $timestampLow - $days * 24 * 3600 + 0.5); - if( (int) $unixTimestamp == $unixTimestamp ) { + if ((int) $unixTimestamp == $unixTimestamp) { return (int) $unixTimestamp; } else { return $unixTimestamp >= 0.0 ? PHP_INT_MAX : PHP_INT_MIN;