From 43c97432dd0c11bcaa1ed3cf207694aa0f6634a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 31 Jan 2024 22:58:42 +0100 Subject: [PATCH] Cleanup --- Command/WeatherCommand.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Command/WeatherCommand.php b/Command/WeatherCommand.php index ee33981..f89f684 100644 --- a/Command/WeatherCommand.php +++ b/Command/WeatherCommand.php @@ -259,7 +259,6 @@ class WeatherCommand extends DoctrineCommand { $temperature = str_replace('°', '', $node->div[0]->div[0]->span[0]); //Get rainrisk - #$rainrisk = str_replace('%', '', trim($node->div[2]))/100; $rainrisk = trim(str_replace('%', '', $node->div[1]))/100; //Store data @@ -294,7 +293,6 @@ class WeatherCommand extends DoctrineCommand { //Iterate on each entry //TODO: wind and other infos are present in $node->div[1]->div[0]->div[1]->div[0]->p - #foreach($node->div[1]->div[0]->div[1]->div[1]->p as $p) { foreach($node->div[1]->div[0]->div[1]->div[0]->p as $p) { //Lookup for rain entry if present if (in_array(trim($p), ['Rain', 'Pluie'])) { @@ -443,7 +441,6 @@ class WeatherCommand extends DoctrineCommand { //Check if realfeel differ if ($session->getRealfeel() !== $realfeel) { //Set average realfeel - #$meteo['realfeel'] = array_sum($meteo['realfeel'])/count($meteo['realfeel']); $session->setRealfeel($realfeel); } @@ -468,7 +465,6 @@ class WeatherCommand extends DoctrineCommand { //Check if temperature differ if ($session->getTemperature() !== $temperature) { //Set average temperature - #$meteo['temperature'] = array_sum($meteo['temperature'])/count($meteo['temperature']); $session->setTemperature($temperature); } -- 2.41.1