Passed
Branch master (0275c6)
by Sergey
04:55
created
src/Models/DewPoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/OpenWeatherMap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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([
Please login to merge, or discard this patch.
src/Hourly.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.