@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | protected function optimizeApp() |
| 170 | 170 | { |
| 171 | 171 | $application = $this->application; |
| 172 | - $application['resolver'] = $this->application->share(function () use ($application) { |
|
| 172 | + $application['resolver'] = $this->application->share(function() use ($application) { |
|
| 173 | 173 | return new ZedFragmentControllerResolver($application); |
| 174 | 174 | }); |
| 175 | 175 | } |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | { |
| 193 | 193 | $application = $this->application; |
| 194 | 194 | $application['twig.global.variables'] = $application->share( |
| 195 | - $application->extend('twig.global.variables', function (array $variables) { |
|
| 195 | + $application->extend('twig.global.variables', function(array $variables) { |
|
| 196 | 196 | $variables += [ |
| 197 | 197 | 'environment' => APPLICATION_ENV, |
| 198 | 198 | 'store' => Store::getInstance()->getStoreName(), |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function boot(Application $app) |
| 46 | 46 | { |
| 47 | - $app->before(function (Request $request) { |
|
| 47 | + $app->before(function(Request $request) { |
|
| 48 | 48 | if ($this->isCli() && $request->server->get('argv', false)) { |
| 49 | 49 | $this->parseCliRequestData($request); |
| 50 | 50 | } else { |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function register(Application $app) |
| 29 | 29 | { |
| 30 | 30 | $app['twig'] = $app->share( |
| 31 | - $app->extend('twig', function (\Twig_Environment $twig) use ($app) { |
|
| 31 | + $app->extend('twig', function(\Twig_Environment $twig) use ($app) { |
|
| 32 | 32 | $twig->addExtension(new TranslationExtension(new Translator($app['locale']))); |
| 33 | 33 | |
| 34 | 34 | return $twig; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function register(Application $app) |
| 28 | 28 | { |
| 29 | - $app['sub_request'] = $app->share(function () use ($app) { |
|
| 29 | + $app['sub_request'] = $app->share(function() use ($app) { |
|
| 30 | 30 | return new SubRequestHandler($app); |
| 31 | 31 | }); |
| 32 | 32 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $application = new Application(); |
| 43 | 43 | $application->register(new SslServiceProvider()); |
| 44 | 44 | |
| 45 | - $application->get('/foo', function () use ($controllerResponse) { |
|
| 45 | + $application->get('/foo', function() use ($controllerResponse) { |
|
| 46 | 46 | return $controllerResponse; |
| 47 | 47 | }); |
| 48 | 48 | |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function _after(TestInterface $test) |
| 30 | 30 | { |
| 31 | - static::$alreadyLoggedIn = false; |
|
| 31 | + static::$alreadyLoggedIn = false; |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -23,8 +23,8 @@ |
||
| 23 | 23 | |
| 24 | 24 | use _generated\ApplicationSharedTesterActions; |
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Define custom actions here |
|
| 28 | - */ |
|
| 26 | + /** |
|
| 27 | + * Define custom actions here |
|
| 28 | + */ |
|
| 29 | 29 | |
| 30 | 30 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | { |
| 51 | 51 | $application = new Application(); |
| 52 | 52 | $application['form.extensions'] = $application->share( |
| 53 | - function ($app) {} |
|
| 53 | + function($app) {} |
|
| 54 | 54 | ); |
| 55 | 55 | $application['session'] = $this->getMockBuilder(SessionInterface::class)->getMock(); |
| 56 | 56 | |
@@ -71,14 +71,14 @@ |
||
| 71 | 71 | $app = new Application(); |
| 72 | 72 | $app['debug'] = true; |
| 73 | 73 | |
| 74 | - $callback = function () use ($app) { |
|
| 74 | + $callback = function() use ($app) { |
|
| 75 | 75 | $subRequestHandler = new SubRequestHandler($app); |
| 76 | 76 | return $subRequestHandler->handleSubRequest(new Request(), self::URL_SUB_REQUEST); |
| 77 | 77 | }; |
| 78 | 78 | |
| 79 | 79 | $app->get(self::URL_MASTER_REQUEST, $callback); |
| 80 | 80 | $app->post(self::URL_MASTER_REQUEST, $callback); |
| 81 | - $app->get(self::URL_SUB_REQUEST, function () use ($app) { |
|
| 81 | + $app->get(self::URL_SUB_REQUEST, function() use ($app) { |
|
| 82 | 82 | return new RedirectResponse(self::URL_SUB_REQUEST); |
| 83 | 83 | }); |
| 84 | 84 | |