@@ -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); |