@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | ->will($this->returnValue([ |
| 79 | 79 | '_route' => 'foo', |
| 80 | 80 | 'name' => 'Fabien', |
| 81 | - '_controller' => function ($name) { |
|
| 81 | + '_controller' => function($name) { |
|
| 82 | 82 | return new Response('Hello '.$name); |
| 83 | 83 | }, |
| 84 | 84 | ])) |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | { // from Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait |
| 173 | 173 | $routes->add( |
| 174 | 174 | '/', |
| 175 | - function () { |
|
| 175 | + function() { |
|
| 176 | 176 | return new Response('Hello'); |
| 177 | 177 | }, |
| 178 | 178 | 'index' |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | |
| 83 | 83 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 84 | 84 | { |
| 85 | - $loader->load(function (ContainerBuilder $container) use ($loader) { |
|
| 85 | + $loader->load(function(ContainerBuilder $container) use ($loader) { |
|
| 86 | 86 | $this->configureContainer($container, $loader); |
| 87 | 87 | |
| 88 | 88 | $container->addObjectResource($this); ////////////// TODO understand and consider necessity. |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $c->compile(); |
| 100 | 100 | $requestStack = new RequestStack(); |
| 101 | 101 | $dispatcher = new EventDispatcher(); |
| 102 | - $dispatcher->addSubscriber(new RouterListener($matcher,$requestStack)); // Returns nothing. |
|
| 102 | + $dispatcher->addSubscriber(new RouterListener($matcher, $requestStack)); // Returns nothing. |
|
| 103 | 103 | $dispatcher->addSubscriber(new ResponseListener('UTF-8')); |
| 104 | 104 | $response = (new HttpKernel( |
| 105 | 105 | $dispatcher, |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | { // from Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait |
| 175 | 175 | $routes->add( |
| 176 | 176 | '/', |
| 177 | - function () { |
|
| 177 | + function() { |
|
| 178 | 178 | return new Response('Hello'); |
| 179 | 179 | }, |
| 180 | 180 | 'index' |