Completed
Push — uv-index ( 9af66d )
by Christian
02:24
created
Cmfcmf/OpenWeatherMap.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     /**
198 198
      * Returns the current weather for a group of city ids.
199 199
      *
200
-     * @param array  $ids   The city ids to get weather information for
200
+     * @param string  $ids   The city ids to get weather information for
201 201
      * @param string $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned.
202 202
      * @param string $lang  The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi.
203 203
      * @param string $appid Your app id, default ''. See http://openweathermap.org/appid for more details.
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      * Returns the forecast for the place you specified. DANGER: Might return
222 222
      * fewer results than requested due to a bug in the OpenWeatherMap API!
223 223
      *
224
-     * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather.
224
+     * @param string $query The place to get weather information for. For possible values see ::getWeather.
225 225
      * @param string           $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned.
226 226
      * @param string           $lang  The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi.
227 227
      * @param string           $appid Your app id, default ''. See http://openweathermap.org/appid for more details.
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      * Returns the DAILY forecast for the place you specified. DANGER: Might return
253 253
      * fewer results than requested due to a bug in the OpenWeatherMap API!
254 254
      *
255
-     * @param array|int|string $query The place to get weather information for. For possible values see ::getWeather.
255
+     * @param string $query The place to get weather information for. For possible values see ::getWeather.
256 256
      * @param string           $units Can be either 'metric' or 'imperial' (default). This affects almost all units returned.
257 257
      * @param string           $lang  The language to use for descriptions, default is 'en'. For possible values see http://openweathermap.org/current#multi.
258 258
      * @param string           $appid Your app id, default ''. See http://openweathermap.org/appid for more details.
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
     /**
280 280
      * Returns the weather history for the place you specified.
281 281
      *
282
-     * @param array|int|string $query      The place to get weather information for. For possible values see ::getWeather.
282
+     * @param string $query      The place to get weather information for. For possible values see ::getWeather.
283 283
      * @param \DateTime        $start
284 284
      * @param int              $endOrCount
285 285
      * @param string           $type       Can either be 'tick', 'hour' or 'day'.
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      *
315 315
      * @param float              $lat           The location's latitude.
316 316
      * @param float              $lon           The location's longitude.
317
-     * @param \DateTimeInterface $dateTime      The date and time to request data for.
317
+     * @param \DateTime $dateTime      The date and time to request data for.
318 318
      * @param string             $timePrecision This decides about the timespan OWM will look for the uv index. The tighter
319 319
      *                                          the timespan, the less likely it is to get a result. Can be 'year', 'month',
320 320
      *                                          'day', 'hour', 'minute' or 'second', defaults to 'day'.
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
      *
435 435
      * @param array|int|string $query      The place to get weather information for. For possible values see ::getWeather.
436 436
      * @param \DateTime        $start      The \DateTime object of the date to get the first weather information from.
437
-     * @param \DateTime|int    $endOrCount Can be either a \DateTime object representing the end of the period to
437
+     * @param integer    $endOrCount Can be either a \DateTime object representing the end of the period to
438 438
      *                                     receive weather history data for or an integer counting the number of
439 439
      *                                     reports requested.
440 440
      * @param string           $type       The period of the weather history requested. Can be either be either "tick",
@@ -575,10 +575,10 @@  discard block
 block discarded – undo
575 575
      * Build the url to fetch weather data from.
576 576
      *
577 577
      * @param        $query
578
-     * @param        $units
579
-     * @param        $lang
580
-     * @param        $appid
581
-     * @param        $mode
578
+     * @param        string $units
579
+     * @param        string $lang
580
+     * @param        string $appid
581
+     * @param        string $mode
582 582
      * @param string $url   The url to prepend.
583 583
      *
584 584
      * @return bool|string The fetched url, false on failure.
Please login to merge, or discard this patch.