Skip to content
Permalink
Browse files

Fix some more sonarqube defects

  • Loading branch information
decke committed May 14, 2019
1 parent 86e70c3 commit c1c7383308b7033fff38d7c133100910ea1406c4
Showing with 5 additions and 5 deletions.
  1. +5 −5 index.php
@@ -60,7 +60,7 @@
return $response->withStatus(302)->withHeader('Location', '/');
});

$app->get('/logout', function ($request, $response, $args) use ($session) {
$app->get('/logout', function ($request, $response) use ($session) {
$session->logout();

return $response->withStatus(302)->withHeader('Location', '/');
@@ -71,7 +71,7 @@
return $this->view->render($response, 'register.html');
});

$app->post('/register', function ($request, $response) use ($session) {
$app->post('/register', function ($request, $response) {
if (!filter_var($request->getParam('email'), FILTER_VALIDATE_EMAIL)) {
$this->flash->addMessage('error', 'EMail address invalid');
}
@@ -120,7 +120,7 @@
});

/* Map */
$app->get('/map', function ($request, $response) use ($session) {
$app->get('/map', function ($request, $response) {
$query = '';

if ($request->getParam('lat') && $request->getParam('lng')) {
@@ -133,7 +133,7 @@
));
});

$app->get('/map.js', function ($request, $response) use ($session) {
$app->get('/map.js', function ($request, $response) {
$links = array();
$location = new Location();
$locations = array();
@@ -180,7 +180,7 @@
});

/* Locations */
$app->get('/locations', function ($request, $response) use ($session) {
$app->get('/locations', function ($request, $response) {
$loc = new Location();

return $this->view->render($response, 'locations.html', array(

0 comments on commit c1c7383

Please sign in to comment.
You can’t perform that action at this time.