Cleanup controllers

This commit is contained in:
Romain Neutron
2012-09-28 12:57:11 +02:00
parent 697b234d54
commit f68cae2bb4
21 changed files with 2114 additions and 2154 deletions

View File

@@ -30,7 +30,7 @@ class Tooltip implements ControllerProviderInterface
$controllers->before(function(Request $request) use ($app) {
$response = $app['firewall']->requireAuthentication();
if($response instanceof Response) {
if ($response instanceof Response) {
return $response;
}
});
@@ -122,14 +122,13 @@ class Tooltip implements ControllerProviderInterface
}
return $app['twig']->render(
'prod/Tooltip/Caption.html.twig'
, array(
'record' => $record,
'view' => $context,
'highlight' => $app['request']->request->get('query'),
'searchEngine' => $search_engine,
)
);
'prod/Tooltip/Caption.html.twig'
, array(
'record' => $record,
'view' => $context,
'highlight' => $app['request']->request->get('query'),
'searchEngine' => $search_engine,
));
}
public function displayTechnicalDatas(Application $app, $sbas_id, $record_id)