Skip to content

Commit 3ef496c

Browse files
committed
Merge pull request #50 from cmfcmf/analysis-8nJpN8
Applied fixes from StyleCI
2 parents c15f845 + 9a23dc2 commit 3ef496c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Cmfcmf/OpenWeatherMap.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ private function cacheOrFetchResult($url)
542542
$cache->setSeconds($this->seconds);
543543
$this->wasCached=false;
544544
if ($cache->isCached($url)) {
545-
$this->wasCached=true;
545+
$this->wasCached=true;
546546
return $cache->getCached($url);
547547
}
548548
$result = $this->fetcher->fetch($url);
@@ -592,7 +592,6 @@ private function buildUrl($query, $units, $lang, $appid, $mode, $url)
592592
*/
593593
private function buildQueryUrlParameter($query)
594594
{
595-
596595
switch ($query) {
597596
case (is_array($query) && isset($query['lat']) && isset($query['lon']) && is_numeric($query['lat']) && is_numeric($query['lon'])):
598597
return "lat={$query['lat']}&lon={$query['lon']}";
@@ -614,8 +613,6 @@ private function buildQueryUrlParameter($query)
614613
*/
615614
public function wasCached()
616615
{
617-
618-
return $this->wasCached;
616+
return $this->wasCached;
619617
}
620-
621618
}

0 commit comments

Comments
 (0)