Completed
Push — master ( c15f84...3ef496 )
by Christian
11:33 queued 09:15
created
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.php 1 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/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.
Cmfcmf/OpenWeatherMap/History.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/Exception.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/Fetcher/FetcherInterface.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.