diff --git a/src/Controller/StationController.php b/src/Controller/StationController.php index 659708a1..846b8f3e 100644 --- a/src/Controller/StationController.php +++ b/src/Controller/StationController.php @@ -42,10 +42,6 @@ public function stationAction(#[MapEntity(expr: 'repository.findOneByStationCode public function limitsAction(#[MapEntity(expr: 'repository.findOneByStationCode(stationCode)')] Station $station, LimitAnalysisInterface $limitAnalysis): Response { - if (!$station) { - throw $this->createNotFoundException(); - } - $limitAnalysis ->setStation($station) ->setFromDateTime(Carbon::now()->startOfMonth()) @@ -53,7 +49,6 @@ public function limitsAction(#[MapEntity(expr: 'repository.findOneByStationCode( $exceedance = $limitAnalysis->analyze(); - var_dump($exceedance); return $this->render('Station/limits.html.twig', [ 'exceedanceJson' => json_encode($exceedance, JSON_THROW_ON_ERROR), ]);