Completed
Push — develop ( d19f73...aa97bb )
by
unknown
08:38
created
src/PhpSpreadsheet/Shared/Date.php 1 patch
Doc Comments   +6 added lines, -8 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     /**
113 113
      * Set the Default timezone to use for dates
114 114
      *
115
-     * @param     string|\DateTimeZone    $timezone    The timezone to set for all Excel datetimestamp to PHP DateTime Object conversions
115
+     * @param     string|\DateTimeZone    $timeZone    The timezone to set for all Excel datetimestamp to PHP DateTime Object conversions
116 116
      * @return    boolean                              Success or failure
117 117
      * @throws    \Exception
118 118
      */
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     /**
142 142
      * Validate a timezone
143 143
      *
144
-     * @param     string|\DateTimeZone    $timezone    The timezone to validate, either as a timezone string or object
144
+     * @param     string|\DateTimeZone    $timeZone    The timezone to validate, either as a timezone string or object
145 145
      * @return    \DateTimeZone                        The timezone as a timezone object
146 146
      * @throws    \Exception
147 147
      */
@@ -158,8 +158,7 @@  discard block
 block discarded – undo
158 158
     /**
159 159
      * Convert a MS serialized datetime value from Excel to a PHP Date/Time object
160 160
      *
161
-     * @param     integer|float    $dateValue        MS Excel serialized date/time value
162
-     * @param     \DateTimeZone|string|null          $timezone            The timezone to assume for the Excel timestamp,
161
+     * @param     \DateTimeZone|string|null          $timeZone            The timezone to assume for the Excel timestamp,
163 162
      *                                                                        if you don't want to treat it as a UTC value
164 163
      *                                                                    Use the default (UST) unless you absolutely need a conversion
165 164
      * @return    \DateTime                          PHP date/time object
@@ -196,8 +195,7 @@  discard block
 block discarded – undo
196 195
     /**
197 196
      * Convert a MS serialized datetime value from Excel to a unix timestamp
198 197
      *
199
-     * @param     integer|float    $dateValue        MS Excel serialized date/time value
200
-     * @param     \DateTimeZone|string|null          $timezone            The timezone to assume for the Excel timestamp,
198
+     * @param     \DateTimeZone|string|null          $timeZone            The timezone to assume for the Excel timestamp,
201 199
      *                                                                        if you don't want to treat it as a UTC value
202 200
      *                                                                    Use the default (UST) unless you absolutely need a conversion
203 201
      * @return    integer                            Unix timetamp for this date/time
@@ -213,7 +211,7 @@  discard block
 block discarded – undo
213 211
     /**
214 212
      *    Convert a date from PHP to Excel
215 213
      *
216
-     *    @param    mixed        $dateValue            PHP serialized date/time or date object
214
+     *    @param    integer        $dateValue            PHP serialized date/time or date object
217 215
      *    @param    boolean        $adjustToTimezone    Flag indicating whether $dateValue should be treated as
218 216
      *                                                    a UST timestamp, or adjusted to UST
219 217
      *    @param    string         $timezone            The timezone for finding the adjustment from UST
@@ -254,7 +252,7 @@  discard block
 block discarded – undo
254 252
      * @param    integer    $hours
255 253
      * @param    integer    $minutes
256 254
      * @param    integer    $seconds
257
-     * @return   integer    Excel date/time value
255
+     * @return   double    Excel date/time value
258 256
      */
259 257
     public static function formattedPHPToExcel($year, $month, $day, $hours = 0, $minutes = 0, $seconds = 0)
260 258
     {
Please login to merge, or discard this patch.