@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function register(Application $app) |
24 | 24 | { |
25 | - $app['url_generator'] = $app->share(function ($app) { |
|
25 | + $app['url_generator'] = $app->share(function($app) { |
|
26 | 26 | $app->flush(); |
27 | 27 | |
28 | 28 | return $app['routers']; |
@@ -82,7 +82,7 @@ |
||
82 | 82 | $url = $wantedScheme . '://' . $this->context->getHost() . $pathInfo; |
83 | 83 | |
84 | 84 | return [ |
85 | - '_controller' => function ($url) { |
|
85 | + '_controller' => function($url) { |
|
86 | 86 | return new RedirectResponse($url, 301); |
87 | 87 | }, |
88 | 88 | '_route' => null, |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function register(Application $app) |
24 | 24 | { |
25 | - $app['url_generator'] = $app->share(function ($app) { |
|
25 | + $app['url_generator'] = $app->share(function($app) { |
|
26 | 26 | $app->flush(); |
27 | 27 | |
28 | 28 | return $app['routers']; |
@@ -24,12 +24,12 @@ |
||
24 | 24 | */ |
25 | 25 | public function register(Application $app) |
26 | 26 | { |
27 | - $app['form.extension.double_submit_protection'] = $app->share(function ($app) { |
|
27 | + $app['form.extension.double_submit_protection'] = $app->share(function($app) { |
|
28 | 28 | $translator = isset($app['translator']) ? $app['translator'] : null; |
29 | 29 | return $this->createDoubleSubmitProtectionExtension($app, $translator); |
30 | 30 | }); |
31 | 31 | |
32 | - $app->extend('form.extensions', function ($extensions) use ($app) { |
|
32 | + $app->extend('form.extensions', function($extensions) use ($app) { |
|
33 | 33 | $extensions[] = $app['form.extension.double_submit_protection']; |
34 | 34 | return $extensions; |
35 | 35 | }); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function provideCommunicationLayerDependencies(Container $container) |
35 | 35 | { |
36 | - $container[self::FACADE_STOCK] = function (Container $container) { |
|
36 | + $container[self::FACADE_STOCK] = function(Container $container) { |
|
37 | 37 | return new StockSalesConnectorToStockBridge($container->getLocator()->stock()->facade()); |
38 | 38 | }; |
39 | 39 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | protected function addMailProviderCollection(Container $container) |
54 | 54 | { |
55 | - $container[static::MAIL_PROVIDER_COLLECTION] = function () { |
|
55 | + $container[static::MAIL_PROVIDER_COLLECTION] = function() { |
|
56 | 56 | $mailProviderCollection = $this->getMailProviderCollection(); |
57 | 57 | |
58 | 58 | return $mailProviderCollection; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | protected function addMailCollection(Container $container) |
78 | 78 | { |
79 | - $container[static::MAIL_TYPE_COLLECTION] = function () { |
|
79 | + $container[static::MAIL_TYPE_COLLECTION] = function() { |
|
80 | 80 | $mailCollection = $this->getMailCollection(); |
81 | 81 | |
82 | 82 | return $mailCollection; |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | protected function addGlossaryFacade(Container $container) |
102 | 102 | { |
103 | - $container[static::FACADE_GLOSSARY] = function (Container $container) { |
|
103 | + $container[static::FACADE_GLOSSARY] = function(Container $container) { |
|
104 | 104 | $mailToGlossaryBridge = new MailToGlossaryBridge($container->getLocator()->glossary()->facade()); |
105 | 105 | |
106 | 106 | return $mailToGlossaryBridge; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | protected function addRenderer(Container $container) |
118 | 118 | { |
119 | - $container[static::RENDERER] = function () { |
|
119 | + $container[static::RENDERER] = function() { |
|
120 | 120 | $twig = $this->getTwigEnvironment(); |
121 | 121 | if (!$twig->hasExtension(TwigTranslatorPlugin::class)) { |
122 | 122 | $translator = new TwigTranslatorPlugin(); |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | */ |
149 | 149 | protected function addMailer(Container $container) |
150 | 150 | { |
151 | - $container[static::MAILER] = function () { |
|
151 | + $container[static::MAILER] = function() { |
|
152 | 152 | $message = Swift_Message::newInstance(); |
153 | 153 | $transport = Swift_MailTransport::newInstance(); |
154 | 154 | $mailer = Swift_Mailer::newInstance($transport); |
@@ -98,7 +98,7 @@ |
||
98 | 98 | /** |
99 | 99 | * @param array $item |
100 | 100 | * |
101 | - * @return array |
|
101 | + * @return string[] |
|
102 | 102 | */ |
103 | 103 | protected function buildLinks($item) |
104 | 104 | { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | $process = new Process($command, APPLICATION_ROOT_DIR); |
49 | 49 | |
50 | - return $process->run(function ($type, $buffer) { |
|
50 | + return $process->run(function($type, $buffer) { |
|
51 | 51 | echo $buffer; |
52 | 52 | }); |
53 | 53 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | $process = new Process($command, APPLICATION_ROOT_DIR); |
49 | 49 | |
50 | - return $process->run(function ($type, $buffer) { |
|
50 | + return $process->run(function($type, $buffer) { |
|
51 | 51 | echo $buffer; |
52 | 52 | }); |
53 | 53 | } |