Skip to content

Commit 3a5be2c

Browse files
committed
Complying with StyleCI demands
1 parent be18e16 commit 3a5be2c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cmfcmf/OpenWeatherMap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public function getForecastUVIndex($lat, $lon, $cnt = 8)
310310
{
311311
$answer = $this->getRawUVIndexData('forecast', $lat, $lon, $cnt);
312312
$data = $this->parseJson($answer);
313-
if(is_object($data)){
313+
if (is_object($data)) {
314314
$lat = $data->coord->lat;
315315
$lon = $data->coord->lon;
316316
$data = $data->list;
@@ -339,7 +339,7 @@ public function getHistoricUVIndex($lat, $lon, $start, $end)
339339
{
340340
$answer = $this->getRawUVIndexData('historic', $lat, $lon, null, $start, $end);
341341
$data = $this->parseJson($answer);
342-
if(is_object($data)){
342+
if (is_object($data)) {
343343
$lat = $data->coord->lat;
344344
$lon = $data->coord->lon;
345345
$data = $data->list;

Cmfcmf/OpenWeatherMap/UVIndex.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ class UVIndex
5252
public function __construct($data, $lat = null, $lon = null)
5353
{
5454
$utctz = new \DateTimeZone('UTC');
55-
if(isset($data->dt)){
56-
$this->time = \DateTime::createFromFormat( 'U', $data->dt );
55+
if (isset($data->dt)) {
56+
$this->time = \DateTime::createFromFormat('U', $data->dt);
5757
} else {
5858
$this->time = new \DateTime($data->date_iso, $utctz);
5959
}
6060
$this->location = new Location($data->lat ?? $lat, $data->lon ?? $lon);
61-
if(isset($data->uvi)){
61+
if (isset($data->uvi)) {
6262
$this->uvIndex = (float)$data->uvi;
6363
} else {
6464
$this->uvIndex = (float)$data->value;

0 commit comments

Comments
 (0)