@@ -48,7 +48,7 @@ |
||
48 | 48 | public function configureOptions(OptionsResolver $resolver) |
49 | 49 | { |
50 | 50 | $resolver->setDefaults([ |
51 | - 'validation_groups' => function (FormInterface $form) { |
|
51 | + 'validation_groups' => function(FormInterface $form) { |
|
52 | 52 | $originalUrl = $form->getData()[static::FIELD_ORIGINAL_URL]; |
53 | 53 | $updatedUrl = $form->getData()[static::FIELD_URL]; |
54 | 54 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | public function register(Application $app) |
30 | 30 | { |
31 | 31 | $this->app = $app; |
32 | - $app['cookies'] = $app->share(function () { |
|
32 | + $app['cookies'] = $app->share(function() { |
|
33 | 33 | return new ArrayObject(); |
34 | 34 | }); |
35 | 35 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | protected function createRedirectController($path, $name, $redirectPath, $status = 302) |
133 | 133 | { |
134 | 134 | $controller = $this->controllerCollection |
135 | - ->match($path, function () use ($redirectPath, $status) { |
|
135 | + ->match($path, function() use ($redirectPath, $status) { |
|
136 | 136 | return new RedirectResponse($redirectPath, $status); |
137 | 137 | }) |
138 | 138 | ->bind($name); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | */ |
186 | 186 | private function addJsonParsing(Controller $controller) |
187 | 187 | { |
188 | - $controller->before(function (Request $request) { |
|
188 | + $controller->before(function(Request $request) { |
|
189 | 189 | $isJson = (strpos($request->headers->get('Content-Type'), 'application/json') === 0); |
190 | 190 | if ($isJson) { |
191 | 191 | $data = json_decode($request->getContent(), true); |
@@ -68,7 +68,7 @@ |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | $app->before( |
71 | - function (Request $request) { |
|
71 | + function(Request $request) { |
|
72 | 72 | if ($this->shouldBeSsl($request)) { |
73 | 73 | $fakeRequest = clone $request; |
74 | 74 | $fakeRequest->server->set('HTTPS', true); |
@@ -90,7 +90,7 @@ |
||
90 | 90 | $url = $wantedScheme . '://' . $this->context->getHost() . $pathInfo; |
91 | 91 | |
92 | 92 | return [ |
93 | - '_controller' => function ($url) { |
|
93 | + '_controller' => function($url) { |
|
94 | 94 | return new RedirectResponse($url, 301); |
95 | 95 | }, |
96 | 96 | '_route' => null, |
@@ -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 { |
@@ -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 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | public function register(Application $app) |
41 | 41 | { |
42 | 42 | $app['twig.global.variables'] = $app->share( |
43 | - $app->extend('twig.global.variables', function (array $variables) { |
|
43 | + $app->extend('twig.global.variables', function(array $variables) { |
|
44 | 44 | $variables['username'] = $this->getUsername(); |
45 | 45 | |
46 | 46 | return $variables; |
@@ -79,7 +79,7 @@ |
||
79 | 79 | 'invalid key' => false, |
80 | 80 | ]; |
81 | 81 | |
82 | -TXT |
|
82 | +txt |
|
83 | 83 | ); |
84 | 84 | } |
85 | 85 |