This commit is contained in:
Romain Neutron
2013-10-30 19:35:23 +01:00
parent 36f7b24f26
commit 9b471fdf76
129 changed files with 473 additions and 477 deletions

View File

@@ -30,7 +30,7 @@ class PathFileTest implements ControllerProviderInterface
/**
* @todo : check this as it would lead to a security issue
*/
$controllers->get('/path/', function(Application $app, Request $request) {
$controllers->get('/path/', function (Application $app, Request $request) {
return $app->json(array(
'exists' => file_exists($request->query->get('path'))
, 'file' => is_file($request->query->get('path'))
@@ -41,7 +41,7 @@ class PathFileTest implements ControllerProviderInterface
));
});
$controllers->get('/url/', function(Application $app, Request $request) {
$controllers->get('/url/', function (Application $app, Request $request) {
return $app->json(array('code' => \http_query::getHttpCodeFromUrl($request->query->get('url'))));
});