@@ -90,7 +90,6 @@ |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | - * @param int $hour |
|
| 94 | 93 | * |
| 95 | 94 | * @return Hour |
| 96 | 95 | */ |
@@ -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) { |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * |
|
| 4 | - * PHP version 5.5 |
|
| 5 | - * |
|
| 6 | - * @package Forecast |
|
| 7 | - * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | - * @license MIT |
|
| 9 | - */ |
|
| 3 | + * |
|
| 4 | + * PHP version 5.5 |
|
| 5 | + * |
|
| 6 | + * @package Forecast |
|
| 7 | + * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | + * @license MIT |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace Forecast; |
| 12 | 12 | |
@@ -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 | } |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * |
|
| 4 | - * PHP version 5.5 |
|
| 5 | - * |
|
| 6 | - * @package Forecast\Models |
|
| 7 | - * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | - * @license MIT |
|
| 9 | - */ |
|
| 3 | + * |
|
| 4 | + * PHP version 5.5 |
|
| 5 | + * |
|
| 6 | + * @package Forecast\Models |
|
| 7 | + * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | + * @license MIT |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace Forecast\Models; |
| 12 | 12 | |
@@ -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([ |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * |
|
| 4 | - * PHP version 5.5 |
|
| 5 | - * |
|
| 6 | - * @package Forecast |
|
| 7 | - * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | - * @license MIT |
|
| 9 | - */ |
|
| 3 | + * |
|
| 4 | + * PHP version 5.5 |
|
| 5 | + * |
|
| 6 | + * @package Forecast |
|
| 7 | + * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | + * @license MIT |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace Forecast; |
| 12 | 12 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * |
|
| 4 | - */ |
|
| 3 | + * |
|
| 4 | + */ |
|
| 5 | 5 | namespace Forecast; |
| 6 | 6 | use Forecast\Model\Humidity; |
| 7 | 7 | use Forecast\Model\Precipitation; |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * |
|
| 4 | - * PHP version 5.5 |
|
| 5 | - * |
|
| 6 | - * @package Forecast\Helper |
|
| 7 | - * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | - * @license MIT |
|
| 9 | - */ |
|
| 3 | + * |
|
| 4 | + * PHP version 5.5 |
|
| 5 | + * |
|
| 6 | + * @package Forecast\Helper |
|
| 7 | + * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | + * @license MIT |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace Forecast\Helper; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * |
|
| 4 | - * PHP version 5.5 |
|
| 5 | - * |
|
| 6 | - * @package Forecast\Model |
|
| 7 | - * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | - * @license MIT |
|
| 9 | - */ |
|
| 3 | + * |
|
| 4 | + * PHP version 5.5 |
|
| 5 | + * |
|
| 6 | + * @package Forecast\Model |
|
| 7 | + * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | + * @license MIT |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace Forecast\Model; |
| 12 | 12 | |
@@ -1,12 +1,12 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * |
|
| 4 | - * PHP version 5.5 |
|
| 5 | - * |
|
| 6 | - * @package Forecast |
|
| 7 | - * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | - * @license MIT |
|
| 9 | - */ |
|
| 3 | + * |
|
| 4 | + * PHP version 5.5 |
|
| 5 | + * |
|
| 6 | + * @package Forecast |
|
| 7 | + * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | + * @license MIT |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace Forecast; |
| 12 | 12 | |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | |
| 203 | 203 | |
| 204 | 204 | |
| 205 | - /* abstract public function getDaily(); |
|
| 205 | + /* abstract public function getDaily(); |
|
| 206 | 206 | |
| 207 | 207 | abstract public function getHistory();*/ |
| 208 | 208 | } |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * |
|
| 4 | - * PHP version 5.5 |
|
| 5 | - * |
|
| 6 | - * @package Forecast\Models |
|
| 7 | - * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | - * @license MIT |
|
| 9 | - */ |
|
| 3 | + * |
|
| 4 | + * PHP version 5.5 |
|
| 5 | + * |
|
| 6 | + * @package Forecast\Models |
|
| 7 | + * @author Sergey V.Kuzin <[email protected]> |
|
| 8 | + * @license MIT |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace Forecast\Models; |
| 12 | 12 | |