CS Style fixes

This commit is contained in:
MarkBaker 2019-02-17 17:40:57 +01:00
parent f4f4d513e7
commit 917592001e
1 changed files with 3 additions and 3 deletions

View File

@ -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;