Skip to content

Commit

Permalink
More CS niceties
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkBaker committed Feb 17, 2019
1 parent 9175920 commit a8642a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/PhpSpreadsheet/Shared/OLE.php
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,9 @@ public static function localDateToOLE($date)
*
* @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)
{
Expand All @@ -565,8 +566,8 @@ public static function OLE2LocalDate($oleTimestamp)

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

0 comments on commit a8642a2

Please sign in to comment.