@@ -66,7 +66,7 @@ |
||
66 | 66 | $a1 = ($a * $t) / ($b + $t); |
67 | 67 | $b1 = log($humidity); |
68 | 68 | |
69 | - $dewPoint = ($b * ( $a1 + $b1)) / ( $a - ($a1 + $b1)); |
|
69 | + $dewPoint = ($b * ($a1 + $b1)) / ($a - ($a1 + $b1)); |
|
70 | 70 | |
71 | 71 | return $dewPoint; |
72 | 72 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $content = file_get_contents('http://api.openweathermap.org/data/2.5/weather?q=Ulyanovsk,%20RU&units=metric&lang=ru'); |
23 | 23 | |
24 | 24 | $result = json_decode($content, true); |
25 | - var_dump($result);; |
|
25 | + var_dump($result); ; |
|
26 | 26 | |
27 | 27 | $cur = new Current(); |
28 | 28 | $cur->setData([ |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | { |
71 | 71 | $this->summary = $data['summary']; |
72 | 72 | |
73 | - foreach($data['hours'] as $hour) { |
|
73 | + foreach ($data['hours'] as $hour) { |
|
74 | 74 | $this->hours[] = (new Hour())->setData($hour); |
75 | 75 | } |
76 | 76 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | /** @var Hour $hour */ |
105 | - foreach ($this->hours as $hour ) { |
|
105 | + foreach ($this->hours as $hour) { |
|
106 | 106 | |
107 | 107 | $h = $hour->getDate()->format('H'); |
108 | 108 | if ((int)$hour->getDate()->format('H') === $seekingHour) { |