From a8642a2e9ed07d96cf51c45354a9f96fabe6913c Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sun, 17 Feb 2019 17:50:39 +0100 Subject: [PATCH] More CS niceties --- src/PhpSpreadsheet/Shared/OLE.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/PhpSpreadsheet/Shared/OLE.php b/src/PhpSpreadsheet/Shared/OLE.php index 52715571..f09fbc92 100644 --- a/src/PhpSpreadsheet/Shared/OLE.php +++ b/src/PhpSpreadsheet/Shared/OLE.php @@ -539,8 +539,9 @@ class OLE * * @param string $oleTimestamp A binary string with the encoded date * - * @return int The Unix timestamp corresponding to the string * @throws ReaderException + * + * @return int The Unix timestamp corresponding to the string */ public static function OLE2LocalDate($oleTimestamp) { @@ -565,8 +566,8 @@ class OLE if ((int) $unixTimestamp == $unixTimestamp) { return (int) $unixTimestamp; - } else { - return $unixTimestamp >= 0.0 ? PHP_INT_MAX : PHP_INT_MIN; } + + return $unixTimestamp >= 0.0 ? PHP_INT_MAX : PHP_INT_MIN; } }