@@ -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 | } |
@@ -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 | |
@@ -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 | } |
@@ -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 | } |