Test Failed
Push — master ( 689a80...a5c52d )
by Jean-Bernard
02:07
created
tests/Component/EngineAsArgumentInKernelControllerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'
Please login to merge, or discard this patch.
tests/Component/AppKernel.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
     public function registerContainerConfiguration(LoaderInterface $loader)
75 75
     {
76
-        $loader->load(function (ContainerBuilder $container) use ($loader) {
76
+        $loader->load(function(ContainerBuilder $container) use ($loader) {
77 77
             $this->configureContainer($container, $loader);
78 78
 
79 79
             $container->addObjectResource($this); ////////////// TODO understand and consider necessity.
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             ->addArgument([])
146 146
         ;
147 147
 
148
-        $c->setParameter('router.resource',                       'kernel:loadRoutes'); // resource_type: service
148
+        $c->setParameter('router.resource', 'kernel:loadRoutes'); // resource_type: service
149 149
 //         $c->setParameter('router.resource',                       new Expression('service("kernel").loadRoutes'));
150 150
 //        $c->setParameter('router.resource',                       MicroKernel::class . ':loadRoutes');
151 151
 //         $c->setParameter('router.resource',                       new Reference('kernel') . ':loadRoutes');
@@ -156,16 +156,16 @@  discard block
 block discarded – undo
156 156
 //        $c->setParameter('router.resource',                       ['kernel', 'loadRoutes']);
157 157
 //        $c->setParameter('router.resource',                       [MicroKernel::class, 'loadRoutes']);
158 158
 
159
-        $c->setParameter('router.cache_class_prefix',             $c->getParameter('kernel.container_class'));
159
+        $c->setParameter('router.cache_class_prefix', $c->getParameter('kernel.container_class'));
160 160
         // symfony/framework-bundle/DependencyInjection/FrameworkExtension.php
161
-        $c->setParameter('router.options.generator_class',        UrlGenerator::class); // routing.xml
162
-        $c->setParameter('router.options.generator_base_class',   UrlGenerator::class); // routing.xml
161
+        $c->setParameter('router.options.generator_class', UrlGenerator::class); // routing.xml
162
+        $c->setParameter('router.options.generator_base_class', UrlGenerator::class); // routing.xml
163 163
         $c->setParameter('router.options.generator_dumper_class', PhpGeneratorDumper::class); // routing.xml
164
-        $c->setParameter('router.options.generator.cache_class',  '%router.cache_class_prefix%UrlGenerator'); // routing.xml
165
-        $c->setParameter('router.options.matcher_class',          RedirectableUrlMatcher::class); // routing.xml
166
-        $c->setParameter('router.options.matcher_base_class',     RedirectableUrlMatcher::class); // routing.xml
167
-        $c->setParameter('router.options.matcher_dumper_class',   PhpMatcherDumper::class); // routing.xml
168
-        $c->setParameter('router.options.matcher.cache_class',    '%router.cache_class_prefix%UrlMatcher'); // routing.xml
164
+        $c->setParameter('router.options.generator.cache_class', '%router.cache_class_prefix%UrlGenerator'); // routing.xml
165
+        $c->setParameter('router.options.matcher_class', RedirectableUrlMatcher::class); // routing.xml
166
+        $c->setParameter('router.options.matcher_base_class', RedirectableUrlMatcher::class); // routing.xml
167
+        $c->setParameter('router.options.matcher_dumper_class', PhpMatcherDumper::class); // routing.xml
168
+        $c->setParameter('router.options.matcher.cache_class', '%router.cache_class_prefix%UrlMatcher'); // routing.xml
169 169
 
170 170
         $c->setParameter('router.request_context.host', 'localhost'); // routing.xml
171 171
         $c->setParameter('router.request_context.scheme', 'http'); // routing.xml
Please login to merge, or discard this patch.