Completed
Push — develop ( aa97bb...91573b )
by
unknown
09:37
created
src/PhpSpreadsheet/Shared/Date.php 1 patch
Doc Comments   +7 added lines, -9 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
@@ -212,7 +210,7 @@  discard block
 block discarded – undo
212 210
     /**
213 211
      *    Convert a date from PHP to an MS Excel serialized date/time value
214 212
      *
215
-     *    @param    mixed            $dateValue            PHP serialized date/time or date object
213
+     *    @param    integer            $dateValue            PHP serialized date/time or date object
216 214
      *    @return   float|boolean    Excel date/time value
217 215
      *                                  or boolean FALSE on failure
218 216
      */
@@ -250,7 +248,7 @@  discard block
 block discarded – undo
250 248
     /**
251 249
      *    Convert a Unix timestamp to an MS Excel serialized date/time value
252 250
      *
253
-     *    @param    \DateTimeInterface    $dateValue            PHP DateTime object
251
+     *    @param    integer    $dateValue            PHP DateTime object
254 252
      *    @return   float                 MS Excel serialized date/time value
255 253
      */
256 254
     public static function timestampToExcel($dateValue = 0)
@@ -270,7 +268,7 @@  discard block
 block discarded – undo
270 268
      * @param    integer    $hours
271 269
      * @param    integer    $minutes
272 270
      * @param    integer    $seconds
273
-     * @return   integer    Excel date/time value
271
+     * @return   double    Excel date/time value
274 272
      */
275 273
     public static function formattedPHPToExcel($year, $month, $day, $hours = 0, $minutes = 0, $seconds = 0)
276 274
     {
Please login to merge, or discard this patch.