@@ -1,19 +1,19 @@ |
||
| 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 | |
@@ -1,16 +1,16 @@ |
||
| 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 | |
@@ -1,6 +1,6 @@ |
||
| 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 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -1,19 +1,19 @@ |
||
| 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 | |
@@ -1,19 +1,19 @@ |
||
| 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 | |
@@ -1,19 +1,19 @@ |
||
| 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 | |
@@ -1,19 +1,19 @@ |
||
| 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 | |
@@ -1,19 +1,19 @@ |
||
| 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 | |