aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadify <boomkin1234@hotmail.com>2017-12-01 09:59:15 +0100
committerShadify <boomkin1234@hotmail.com>2017-12-01 09:59:15 +0100
commit8c514c01aa4d620aea084beca3f4808270671f7e (patch)
tree9deb21d647dae73e6c954b65ab3a4cebb9a3ddc8 /src/AppBundle/Controller
parent0f5659465584b5ef9fcbec26ea695fe3f1af9012 (diff)
wrote test case + cleaned up main page
Diffstat (limited to 'src/AppBundle/Controller')
-rw-r--r--src/AppBundle/Controller/HomeController.php1
-rw-r--r--src/AppBundle/Controller/NewDataController.php1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/AppBundle/Controller/HomeController.php b/src/AppBundle/Controller/HomeController.php
index d8234cf..0cfe2ab 100644
--- a/src/AppBundle/Controller/HomeController.php
+++ b/src/AppBundle/Controller/HomeController.php
@@ -51,7 +51,6 @@ class HomeController extends Controller
$data['TimeStamp'] = gmdate("l jS \of F Y h:i:s A", $data['TimeStamp']);
$arr = [];
- print_r($data);
$CO = is_nan($aqi->calculateAQI("Co", $data['Co'], $tableObj)) ? 0 : $aqi->calculateAQI("Co", $data['Co'], $tableObj);
$SO = is_nan($aqi->calculateAQI("So", $data['So'], $tableObj)) ? 0 : $aqi->calculateAQI("So", $data['So'], $tableObj);
$NO = is_nan($aqi->calculateAQI("No", $data['No'], $tableObj)) ? 0 : $aqi->calculateAQI("No", $data['No'], $tableObj);
diff --git a/src/AppBundle/Controller/NewDataController.php b/src/AppBundle/Controller/NewDataController.php
index f63a7fa..ecb1be9 100644
--- a/src/AppBundle/Controller/NewDataController.php
+++ b/src/AppBundle/Controller/NewDataController.php
@@ -38,7 +38,6 @@ class NewDataController extends Controller
$response->headers->set('Content-Type', 'application/json');
return $response;
-
}
}