@@ -12,9 +12,9 @@ discard block |
||
12 | 12 | { |
13 | 13 | public function register(Fol $app) |
14 | 14 | { |
15 | - $app['middlewares'] = function ($app) { |
|
15 | + $app['middlewares'] = function($app) { |
|
16 | 16 | return [ |
17 | - Middleware::create(function () use ($app) { |
|
17 | + Middleware::create(function() use ($app) { |
|
18 | 18 | if ($app->has('users')) { |
19 | 19 | return Middleware::DigestAuthentication($app['users']); |
20 | 20 | } |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | ->arguments($app) |
27 | 27 | ->catchExceptions(), |
28 | 28 | |
29 | - Middleware::create(function () { |
|
29 | + Middleware::create(function() { |
|
30 | 30 | return class_exists('Whoops\\Run') ? Middleware::whoops() : false; |
31 | 31 | }), |
32 | 32 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | Middleware::languageNegotiator(['en', 'gl', 'es']), |
42 | 42 | |
43 | - function ($request, $response, $next) { |
|
43 | + function($request, $response, $next) { |
|
44 | 44 | $language = Middleware\LanguageNegotiator::getLanguage($request); |
45 | 45 | $translator = new Translator(); |
46 | 46 | $translator->loadTranslations(Translations::fromPoFile(dirname(dirname(__DIR__)).'/locales/'.$language.'.po')); |