Completed
Push — analysis-8nJpN8 ( 9a23dc )
by Christian
09:25 queued 06:43
created
Cmfcmf/OpenWeatherMap.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
      *
461 461
      * @param array|int|string $query           The place to get weather information for. For possible values see below.
462 462
      * @param \DateTime        $start           The \DateTime object of the date to get the first weather information from.
463
-     * @param \DateTime|int    $endOrCount      Can be either a \DateTime object representing the end of the period to
463
+     * @param integer    $endOrCount      Can be either a \DateTime object representing the end of the period to
464 464
      *                                          receive weather history data for or an integer counting the number of
465 465
      *                                          reports requested.
466 466
      * @param string           $type            The period of the weather history requested. Can be either be either "tick",
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
     /**
529 529
      * Fetches the result or delivers a cached version of the result.
530 530
      *
531
-     * @param $url
531
+     * @param string $url
532 532
      *
533 533
      * @return string
534 534
      *
@@ -558,13 +558,13 @@  discard block
 block discarded – undo
558 558
      * Build the url to fetch weather data from.
559 559
      *
560 560
      * @param        $query
561
-     * @param        $units
562
-     * @param        $lang
563
-     * @param        $appid
564
-     * @param        $mode
561
+     * @param        string $units
562
+     * @param        string $lang
563
+     * @param        string $appid
564
+     * @param        string $mode
565 565
      * @param string $url The url to prepend.
566 566
      *
567
-     * @return bool|string The fetched url, false on failure.
567
+     * @return string The fetched url, false on failure.
568 568
      *
569 569
      * @internal
570 570
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * @var Bool True if the last call was fetched from cache, usefull for rate limits 
75 75
      */
76
-    private $wasCached=false;
76
+    private $wasCached = false;
77 77
     
78 78
     /**
79 79
      * @var FetcherInterface The url fetcher.
@@ -540,9 +540,9 @@  discard block
 block discarded – undo
540 540
             /** @var \Cmfcmf\OpenWeatherMap\AbstractCache $cache */
541 541
             $cache = $this->cacheClass;
542 542
             $cache->setSeconds($this->seconds);
543
-            $this->wasCached=false;
543
+            $this->wasCached = false;
544 544
             if ($cache->isCached($url)) {
545
-                $this->wasCached=true;
545
+                $this->wasCached = true;
546 546
                 return $cache->getCached($url);
547 547
             }
548 548
             $result = $this->fetcher->fetch($url);
Please login to merge, or discard this patch.
Cmfcmf/OpenWeatherMap/Util/Temperature.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     /**
81 81
      * Returns the current temperature.
82 82
      *
83
-     * @return string The current temperature.
83
+     * @return double The current temperature.
84 84
      */
85 85
     public function getValue()
86 86
     {
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .
4
- *
5
- * @license MIT
6
- *
7
- * Please see the LICENSE file distributed with this source code for further
8
- * information regarding copyright and licensing.
9
- *
10
- * Please visit the following links to read about the usage policies and the license of
11
- * OpenWeatherMap before using this class:
12
- *
13
- * @see http://www.OpenWeatherMap.org
14
- * @see http://www.OpenWeatherMap.org/terms
15
- * @see http://openweathermap.org/appid
16
- */
3
+     * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .
4
+     *
5
+     * @license MIT
6
+     *
7
+     * Please see the LICENSE file distributed with this source code for further
8
+     * information regarding copyright and licensing.
9
+     *
10
+     * Please visit the following links to read about the usage policies and the license of
11
+     * OpenWeatherMap before using this class:
12
+     *
13
+     * @see http://www.OpenWeatherMap.org
14
+     * @see http://www.OpenWeatherMap.org/terms
15
+     * @see http://openweathermap.org/appid
16
+     */
17 17
 
18 18
 namespace Cmfcmf\OpenWeatherMap\Tests\Fetcher;
19 19
 
Please login to merge, or discard this patch.
Examples/Cache.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@
 block discarded – undo
34 34
  */
35 35
 class ExampleCache extends AbstractCache
36 36
 {
37
+    /**
38
+     * @param string $url
39
+     */
37 40
     private function urlToPath($url)
38 41
     {
39 42
         $tmp = sys_get_temp_dir();
Please login to merge, or discard this patch.
tests/Fetcher/FileGetContentsFetcherTest.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .
4
- *
5
- * @license MIT
6
- *
7
- * Please see the LICENSE file distributed with this source code for further
8
- * information regarding copyright and licensing.
9
- *
10
- * Please visit the following links to read about the usage policies and the license of
11
- * OpenWeatherMap before using this class:
12
- *
13
- * @see http://www.OpenWeatherMap.org
14
- * @see http://www.OpenWeatherMap.org/terms
15
- * @see http://openweathermap.org/appid
16
- */
3
+     * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .
4
+     *
5
+     * @license MIT
6
+     *
7
+     * Please see the LICENSE file distributed with this source code for further
8
+     * information regarding copyright and licensing.
9
+     *
10
+     * Please visit the following links to read about the usage policies and the license of
11
+     * OpenWeatherMap before using this class:
12
+     *
13
+     * @see http://www.OpenWeatherMap.org
14
+     * @see http://www.OpenWeatherMap.org/terms
15
+     * @see http://openweathermap.org/appid
16
+     */
17 17
 
18 18
 namespace Cmfcmf\OpenWeatherMap\Tests\Fetcher;
19 19
 
Please login to merge, or discard this patch.
tests/Util/UnitTest.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright Zikula Foundation 2014 - Zikula Application Framework
4
- *
5
- * This work is contributed to the Zikula Foundation under one or more
6
- * Contributor Agreements and licensed to You under the following license:
7
- *
8
- * @license GNU/LGPv3 (or at your option any later version).
9
- * @package OpenWeatherMap-PHP-Api
10
- *
11
- * Please see the NOTICE file distributed with this source code for further
12
- * information regarding copyright and licensing.
13
- */
3
+     * Copyright Zikula Foundation 2014 - Zikula Application Framework
4
+     *
5
+     * This work is contributed to the Zikula Foundation under one or more
6
+     * Contributor Agreements and licensed to You under the following license:
7
+     *
8
+     * @license GNU/LGPv3 (or at your option any later version).
9
+     * @package OpenWeatherMap-PHP-Api
10
+     *
11
+     * Please see the NOTICE file distributed with this source code for further
12
+     * information regarding copyright and licensing.
13
+     */
14 14
 
15 15
 namespace Cmfcmf\OpenWeatherMap\Tests\Util;
16 16
 
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-call_user_func(function () {
3
+call_user_func(function() {
4 4
     if (!is_file($autoloadFile = __DIR__ . '/../vendor/autoload.php')) {
5 5
         throw new \RuntimeException('Did not find vendor/autoload.php. Did you run "composer install --dev"?');
6 6
     }
Please login to merge, or discard this patch.
Cmfcmf/OpenWeatherMap/CurrentWeather.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .
4
- *
5
- * @license MIT
6
- *
7
- * Please see the LICENSE file distributed with this source code for further
8
- * information regarding copyright and licensing.
9
- *
10
- * Please visit the following links to read about the usage policies and the license of
11
- * OpenWeatherMap before using this class:
12
- *
13
- * @see http://www.OpenWeatherMap.org
14
- * @see http://www.OpenWeatherMap.org/terms
15
- * @see http://openweathermap.org/appid
16
- */
3
+     * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .
4
+     *
5
+     * @license MIT
6
+     *
7
+     * Please see the LICENSE file distributed with this source code for further
8
+     * information regarding copyright and licensing.
9
+     *
10
+     * Please visit the following links to read about the usage policies and the license of
11
+     * OpenWeatherMap before using this class:
12
+     *
13
+     * @see http://www.OpenWeatherMap.org
14
+     * @see http://www.OpenWeatherMap.org/terms
15
+     * @see http://openweathermap.org/appid
16
+     */
17 17
 
18 18
 namespace Cmfcmf\OpenWeatherMap\Tests\Fetcher;
19 19
 
Please login to merge, or discard this patch.
Cmfcmf/OpenWeatherMap/AbstractCache.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .
4
- *
5
- * @license MIT
6
- *
7
- * Please see the LICENSE file distributed with this source code for further
8
- * information regarding copyright and licensing.
9
- *
10
- * Please visit the following links to read about the usage policies and the license of
11
- * OpenWeatherMap before using this class:
12
- *
13
- * @see http://www.OpenWeatherMap.org
14
- * @see http://www.OpenWeatherMap.org/terms
15
- * @see http://openweathermap.org/appid
16
- */
3
+     * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .
4
+     *
5
+     * @license MIT
6
+     *
7
+     * Please see the LICENSE file distributed with this source code for further
8
+     * information regarding copyright and licensing.
9
+     *
10
+     * Please visit the following links to read about the usage policies and the license of
11
+     * OpenWeatherMap before using this class:
12
+     *
13
+     * @see http://www.OpenWeatherMap.org
14
+     * @see http://www.OpenWeatherMap.org/terms
15
+     * @see http://openweathermap.org/appid
16
+     */
17 17
 
18 18
 namespace Cmfcmf\OpenWeatherMap\Tests\Fetcher;
19 19
 
Please login to merge, or discard this patch.
Cmfcmf/OpenWeatherMap/Forecast.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .
4
- *
5
- * @license MIT
6
- *
7
- * Please see the LICENSE file distributed with this source code for further
8
- * information regarding copyright and licensing.
9
- *
10
- * Please visit the following links to read about the usage policies and the license of
11
- * OpenWeatherMap before using this class:
12
- *
13
- * @see http://www.OpenWeatherMap.org
14
- * @see http://www.OpenWeatherMap.org/terms
15
- * @see http://openweathermap.org/appid
16
- */
3
+     * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .
4
+     *
5
+     * @license MIT
6
+     *
7
+     * Please see the LICENSE file distributed with this source code for further
8
+     * information regarding copyright and licensing.
9
+     *
10
+     * Please visit the following links to read about the usage policies and the license of
11
+     * OpenWeatherMap before using this class:
12
+     *
13
+     * @see http://www.OpenWeatherMap.org
14
+     * @see http://www.OpenWeatherMap.org/terms
15
+     * @see http://openweathermap.org/appid
16
+     */
17 17
 
18 18
 namespace Cmfcmf\OpenWeatherMap\Tests\Fetcher;
19 19
 
Please login to merge, or discard this patch.